Commit Graph

25 Commits

Author SHA1 Message Date
Paul Gschwendtner bb69483e77 build: publish script should should note where to paste changelog (#15218)
Currently we still cannot cut the Github release automatically because
the publish script does not have API access. Though it's sometimes
not quite clear for the caretaker what he needs to do manually. In
the meanwhile we make this _slighty_ more clear by adding a
note that indicates where the release notes should be copy-pasted
to.
2019-02-19 17:34:12 -08:00
Jeremy Elbourn 7cd002dff6 build(release-script): npm logout after publishing (#15170) 2019-02-12 12:36:07 -08:00
Paul Gschwendtner 6517e1a834 build: publish script should prompt for upstream remote (#15092) 2019-02-07 09:42:57 -08:00
Paul Gschwendtner acf07d18a9 build: publish script should not print error if tag does not exist (#15080)
Currently the publish script prints an error if the release tag does not exist locally yet. This is not expected since the function
that calls `git` to check if a given tag exists, returns a boolean and should not additionally print the git `stderr`.

Note we can also look into attaching the release notes automatically, but since the release notes are making the URL too large and Github denies too large URL's, this is something we can explore in a follow-ups.
2019-02-05 07:36:18 -08:00
Paul Gschwendtner 1f3324ec1f build: allow recovering from failed publish script (#14906)
* build: fix version bumps not detected in release script

* build: allow recovering from failed publish script

* Currently if anything fails after the creating the local git tag, it's not possible to just re-run the release script because the script fails with an error saying that the local tag already exists. We can be smart about this and just use the existing tag if it refers to the expected SHA.
* Additionally if anything fails after pushing the release tag to the remote, it's not possible to re-run the release script because the tag exists remotely. We can be smart about this and just use the remote tag if it refers to the expected SHA.
2019-01-22 09:30:17 -08:00
Paul Gschwendtner aad9876403 build: run release output validations on circle (#14716)
* Runs the release output validations on CircleCI after all release packages have been built.

Closes #12877
2019-01-09 10:44:11 -08:00
Paul Gschwendtner 0d7258b4e2 build: update nodejs rules (#14622)
Updates to the latest version of the NodeJS rules that includes https://github.com/bazelbuild/rules_nodejs/commit/c40ceb960af4213164d4299d8fbc8220ebdd727f
2019-01-09 10:41:48 -08:00
Paul Gschwendtner 452c6d391a build: ensure that there are no invalid dynamic imports (#14619)
**Note**: In a follow-up I want to wire up the release output validations as part of a CircleCI job. It just makes sense to keep all of these release output validations in the same place.

References https://github.com/angular/material2/issues/12877
2019-01-02 15:49:15 -08:00
Paul Gschwendtner 12bf619bcc build: filter out experimental changes from changelog (#14598)
* Based on request from Vivian and the comments on the last changelog
PR, we don't want to report experimental package changes (yet). In order
to make this easier for the caretaker when doing releases, we just
filter these out automatically.
2018-12-20 13:53:17 -08:00
Paul Gschwendtner 27d3b024c5 build: publish release script should add release notes to tag (#14599) 2018-12-20 13:45:09 -08:00
Paul Gschwendtner 0ba6057058 build: automatically push release tag to upstream (#14595) 2018-12-20 13:39:58 -08:00
Paul Gschwendtner fe7f95ec10 build: add script to publish release (#14565)
Closes #13455
2018-12-19 13:34:03 -08:00
Paul Gschwendtner 5c959932c0 build: do not generate empty changelog sections (#14581)
* Since we filter out duplicate changelog entries it can happen that a `commitGroup` shows up without any commits. e.g. there would be an empty section for `"Features"`.
2018-12-19 13:23:00 -08:00
Paul Gschwendtner fa83e8dd54 build: allow minor releases from master branch (#14564) 2018-12-18 10:58:51 -08:00
Paul Gschwendtner f59c1ee9bc build: print url to commits if staging script fails due to failing status (#14509)
* Based on a recent chat with Miles, it would be good if we default the `Is pre-release?` question to `false` and also print an URL if the status checks for a given branch fail (this should be just more convenient to see what failed)
2018-12-13 16:53:46 -08:00
Paul Gschwendtner 86c138a0b6 build: staging script should switch to publish branch (#14448)
* Rather than throwing an exception if an unexpected branch is currently checked out, we should just try switching to the expected publish branch.
2018-12-11 14:57:34 -08:00
Paul Gschwendtner fe4629024f build: changelog script not filtering duplicate entries (#14421) 2018-12-07 11:32:42 -08:00
Jeremy Elbourn db155e455e chore: tweak wording for changelog message in stage-release script (#14374)
Also add a newline to the written package.json
2018-12-03 13:41:25 -08:00
Paul Gschwendtner 3982e9edfd build: ensure ci is passing when staging release (#14340) 2018-11-30 17:33:40 -08:00
Paul Gschwendtner 325b6400d0 build: generate changelog as part of staging script (#14250)
* Converts the changelog script into plain TypeScript. This makes it easier to integrate it into the _interactive_ staging script
* Fixes that the "Is this is a pre-release" prompt is not returning a boolean.
* No longer runs the staging script with Bazel because `ts-node` is more convenient and also we can be more context-aware (e.g. paths)
2018-11-26 17:17:02 -08:00
Paul Gschwendtner acedb48fc3 chore(stage-release) allow selecting pre-release labels (#14070)
Implements the functionality to select a pre-release label (as discussed in: https://github.com/angular/material2/pull/13621#discussion_r225705238)
2018-11-14 14:21:59 -08:00
Greg Magolan 150c964c32 fix: bazel support for downstream apps (#13836) 2018-11-02 14:33:07 -07:00
Paul Gschwendtner 0e8ef603bb chore: stage release script should create commit (#13748) 2018-10-23 09:02:36 -07:00
Joey Perrott efeefd1408 build: fix getRemoteCommitSha to only return the sha (#13699) 2018-10-19 15:06:32 -07:00
Paul Gschwendtner aaac266c6d build: initial release staging script (#13621) 2018-10-17 10:05:58 -04:00