Skip to content

Commit

Permalink
docs: add latest-versions.ts bump to minor/major version release in…
Browse files Browse the repository at this point in the history
…structions

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)
  • Loading branch information
dgp1130 authored and alan-agius4 committed Dec 14, 2021
1 parent 5b41198 commit 05dffb5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/process/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,26 @@ In general, cherry picks for LTS should only be done if it meets one of the crit

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

**For a minor OR major release:**

After FW releases `-rc.0` for an upcoming minor/major version, update the corresponding version in
[`latest-versions.ts`](/packages/schematics/angular/utility/latest-versions.ts#L=18) to match. This
ensures that CLI `-rc.0` depends on FW `-rc.0`. The same needs to be done for a `-next.0` release,
and needs to be done for both minor _and_ major releases.

**For a major release:**

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.
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.
The current packages that require adjustment are:

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

To perform a release run the following and navigate the prompts:
## Releasing the CLI

After confirming that the above steps have been done or are not necessary, run the following and
navigate the prompts:

```sh
yarn ng-dev release publish
Expand Down

0 comments on commit 05dffb5

Please sign in to comment.