12 Commits

Author SHA1 Message Date
Keen Yee Liau
90a01968f4 build: determine version to publish from package.json
Currently, the version of a release is determined by the git tag.
This PR changes release script to determine the release version from the
`version` property in the root `package.json`.

Release docs have also been updated.
2021-03-24 09:17:24 -04:00
Doug Parker
6e8d4509a8 ci: require --tag flag for release and validate it
`--tag` now must be explicitly specified rather than defaulting to `latest`. It is also validated to be one of the expected set of tags. There is a new `--tagCheck false` flag that will skip this in order to handle one-off custom tags if necessary in the future.

Apparently NPM requires that all releases have tags (defaulting to `latest` if not explicitly specified), so there is no way to choose **not** to push a new tag. That means that you can't push `10.0.x` and then push `9.0.x` without either using `v9-lts` or clobbering `latest`. The `--tag` requirement should hopefully enforce this restriction to avoid a potential release footgun.
2020-07-23 10:45:25 +02:00
Doug Parker
b699a1e850 ci: parse boolean flags from string inputs
Flag arguments provided by minimist are always strings. Both `--branchCheck` and `--versionCheck` failed to take this into account and were incorrectly typed as a result. Now boolean flags are parsed into actual boolean types which can be used more intuitively.
2020-07-23 10:45:25 +02:00
Doug Parker
49ed081589 refactor: move Wombat registry to reusable constant
Pure refactor that just pulls the Wombat registry into a separate string constant to be re-used across scripts.
2020-07-23 10:45:25 +02:00
Joey Perrott
98a5cb40ff build: default to wombat proxy for publishing
If no --registry argument is provided when calling to publish
use the Wombat proxy.  Additionally, updates the release process
documentation to instruct usage of the Wombat proxy.
2020-04-07 19:43:52 -07:00
Charles Lyding
eba2ea7b14 build: support publish registry option 2019-07-10 04:08:39 +08:00
Charles Lyding
fa84505563 build: support publishing on windows 2019-07-02 15:32:27 -07:00
Hans Larsen
346040f3e6 build: prevent publishing dirty versions 2019-03-13 13:51:01 -07:00
Hans
c9d10f2b32 ci: publish script now checks version and tag together 2018-10-03 16:33:31 -07:00
Hans
bb56f8067f ci: publish script now checks that master has next tag 2018-10-03 16:33:31 -07:00
Hans
c63b4d8d2b ci: disable bazel in devkit-admin build
Replace the build step with a custom JSON schema output parallel to
bazel.
2018-09-13 16:44:17 -07:00
Hans Larsen
44086c60ff build: move devkit repo back to angular-cli 2018-06-05 18:50:06 -07:00