angular-cn/scripts/release
Paul Gschwendtner 8badf9808a build: add pre-release check that validates the version name (#29551)
Currently with the release of "8.0.0-beta.10", the Bazel npm packag accidentally
was stamped with an incorrect version placeholder: `8.0.0-beta.10+1.sha-a28b3e3`.

This can happen because the placeholder is based on latest tag that matches the
Semver format. e.g. if `HEAD` equals to the commit that has the latest tag, the
version name will be correct and refer to the tag name (e.g. `8.0.0-beta.10`). Though
if the latest commit is not tagged with the most recent tag, the version
name will also include the SHA of the commit (e.g.  `8.0.0-beta.10+1.sha-a28b3e3`).

We can ensure that we don't accidentally release versions from a more recent commit
that shouldn't be part of the release by adding a pre-release check that ensures that
the `BUILD_SCM_VERSION` Bazel status variable matches the expected version format.

PR Close #29551
2019-03-27 12:26:13 -07:00
..
post-check build: update the scripts/release/post-check script for 6.0.x 2018-05-03 15:39:58 -07:00
post-check-next build: update deps in ./scripts/release/post-check 2019-02-20 13:51:31 -08:00
pre-check build: add pre-release check that validates the version name (#29551) 2019-03-27 12:26:13 -07:00
publish-latest build: only stamp version info when releasing (#27362) 2018-11-30 16:08:23 -08:00
publish-next build: only stamp version info when releasing (#27362) 2018-11-30 16:08:23 -08:00