Skip to content

Commit 05dffb5

Browse files
dgp1130alan-agius4
authored andcommitted
docs: add latest-versions.ts bump to minor/major version release instructions
In v13.1, we forgot to increment this value and caused an error for early adopters of `13.1.0`. CI should catch this mistake now, and these docs will serve as a reminder to bump the value before release. (cherry picked from commit 6fdfe97)
1 parent 5b41198 commit 05dffb5

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/process/release.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,26 @@ In general, cherry picks for LTS should only be done if it meets one of the crit
5555

5656
Releasing is performed using Angular's unified release tooling. Each week, two releases are expected, `latest` and `next` on npm.
5757

58+
**For a minor OR major release:**
59+
60+
After FW releases `-rc.0` for an upcoming minor/major version, update the corresponding version in
61+
[`latest-versions.ts`](/packages/schematics/angular/utility/latest-versions.ts#L=18) to match. This
62+
ensures that CLI `-rc.0` depends on FW `-rc.0`. The same needs to be done for a `-next.0` release,
63+
and needs to be done for both minor _and_ major releases.
64+
65+
**For a major release:**
66+
5867
When a release is transitioning from a prerelease to a stable release, the semver ranges for Angular dependencies within the packages' `package.json` files will need to be updated to remove the prerelease version segment.
5968
For example, `"@angular/compiler-cli": "^13.0.0 || ^13.0.0-next"` in a prerelease should become `"@angular/compiler-cli": "^13.0.0"` in the stable release.
6069
The current packages that require adjustment are:
6170

6271
- `@angular-devkit/build-angular`: packages/angular_devkit/build_angular/package.json
6372
- `@ngtools/webpack`: packages/ngtools/webpack/package.json
6473

65-
To perform a release run the following and navigate the prompts:
74+
## Releasing the CLI
75+
76+
After confirming that the above steps have been done or are not necessary, run the following and
77+
navigate the prompts:
6678

6779
```sh
6880
yarn ng-dev release publish

0 commit comments

Comments
 (0)