You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: docs/process/release.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,6 @@ Alan | Doug
22
22
Charles | Keen
23
23
Filipe | Joey
24
24
25
-
## Triaging Issues
26
-
TBD
27
-
28
25
## Merging PRs
29
26
30
27
The list of PRs which are currently ready to merge (approved with passing status checks) can
@@ -38,7 +35,6 @@ When ready to merge a PR, run the following command:
38
35
yarn ng-dev pr merge <pr>
39
36
```
40
37
41
-
42
38
### Maintaining LTS branches
43
39
44
40
Releases that are under Long Term Support (LTS) are listed on [angular.io](https://angular.io/guide/releases#support-policy-and-schedule).
@@ -57,26 +53,20 @@ In general, cherry picks for LTS should only be done if it meets one of the crit
57
53
58
54
## Before releasing
59
55
60
-
Make sure the CI is green.
61
-
62
-
Consider if you need to update [`packages/schematics/angular/utility/latest-versions.ts`](https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/utility/latest-versions.ts) to reflect changes in dependent versions.
56
+
Update `Angular` version in [`packages/schematics/angular/utility/latest-versions.ts`](https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/utility/latest-versions.ts).
63
57
64
58
## Shepparding
65
59
66
60
As commits are cherry-picked when PRs are merged, creating the release should be a matter of creating a tag.
67
61
68
-
Update the package versions to reflect the new release version in **both**:
The package versions we are about to publish are derived from the git tag that
79
-
we just created. Double check that the versions are correct by running the
68
+
The package versions we are about to publish are derived from `version` in the root
69
+
[`package.json`](https://github.com/angular/angular-cli/blob/master/package.json#L3). Double check that the versions are correct by running the
80
70
following command.
81
71
82
72
```bash
@@ -95,7 +85,7 @@ git push upstream --follow-tags
95
85
**This can ONLY be done by a Google employee.**
96
86
97
87
Log in to the Wombat publishing service using your own github and google.com
98
-
account to publish. This enforces the loging is done using 2Factor auth.
88
+
account to publish. This enforces the login is done using 2Factor auth.
99
89
100
90
Run `npm login --registry https://wombat-dressing-room.appspot.com`:
101
91
@@ -111,7 +101,7 @@ After closing the tab, you have successfully logged in, it is time to publish.
111
101
112
102
**This can ONLY be done by a Google employee.**
113
103
114
-
**It is a good idea to wait for CI to be green on the patch branch and tag before doing the release.**
104
+
**Wait for CI to be green after pushing the release commit.**
115
105
116
106
For the first release of a major version, follow the instructions in
117
107
[Publishing a Major Version](#publishing-a-major-version) section.
@@ -159,6 +149,16 @@ using the `--githubToken` flag. You just then have to confirm the draft.
159
149
160
150
> **Tags containing `next` or `rc` should be marked as pre-release.**
161
151
152
+
## Post-release Version Update
153
+
154
+
Update the package versions to reflect the *next* release version in **both**:
155
+
1.`version` in [`package.json`](https://github.com/angular/angular-cli/blob/master/package.json#L3)
156
+
1.`DevkitBuildAngular` in [`packages/schematics/angular/utility/latest-versions.ts`](https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/utility/latest-versions.ts)
157
+
158
+
```sh
159
+
git commit package.json packages/schematics/angular/utility/latest-versions.ts -m "build: bump version to vXX"
160
+
```
161
+
162
162
### Microsite Publishing
163
163
164
164
The [microsite](https://cli.angular.io/) is the landing page for Angular CLI and
0 commit comments