Skip to content

Commit 0a7415e

Browse files
committed
docs: update release doc with script to remove prerelease versions
Also includes updating the lockfile for completeness, though that should be a temporary requirement.
1 parent d85d1db commit 0a7415e

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

docs/process/release.md

+10-11
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,19 @@ In general, cherry picks for LTS should only be done if it meets one of the crit
6363

6464
# Release
6565

66-
Releasing is performed using Angular's unified release tooling. Each week, two releases are expected, `latest` and `next` on npm. For major
67-
and minor releases, some dependencies need to be manually bumped. The following files contain all the version numbers which need to be
68-
manually updated:
69-
70-
- [`latest-versions.ts`](/packages/schematics/angular/utility/latest-versions.ts#L=18)
71-
- [`latest-versions/package.json`](/packages/schematics/angular/utility/latest-versions/package.json)
72-
- [`@angular/pwa`](/packages/angular/pwa/package.json)
73-
- [`@angular-devkit/build-angular`](/packages/angular_devkit/build_angular/package.json)
74-
- [`@ngtools/webpack`](/packages/ngtools/webpack/package.json)
66+
Releasing is performed using Angular's unified release tooling. Each week, two releases are expected, `latest` and `next` on npm.
7567

7668
**DURING a minor OR major CLI release:**
7769

78-
Once FW releases the actual minor/major release (for example: `13.0.0` or `13.1.0`), the above versions should be updated to match (remove
79-
`-rc.0` and `-next.0`). This **must** be done as a separate PR which lands _after_ FW releases (or else CI will fail) but _before_ the CLI
70+
Once FW releases the actual minor/major release (for example: `13.0.0` or `13.1.0`), update dependencies with the following:
71+
72+
1. Run `sed -i -E "s, \|\| \^13\.1\.0-(next|rc)\.[0-9]+,,g" packages/**/package.json` with the release version to remove prerelease tags.
73+
- No need to update `devDependencies` in the root `package.json`, Renovate will get them later.
74+
2. Update [`latest-versions/package.json`](packages/schematics/angular/utility/latest-versions/package.json) so `@angular/core` and `ng-packagr` are using the release version (drop `-rc.0` / `-next.0`).
75+
- This is the file used by `ng new` to determine versions in the generated `package.json` seen by developers.
76+
3. Run `yarn -s bazel run @npm2//:sync` to update the pnpm lockfile.
77+
78+
Merge the above two changes in a separate PR which lands _after_ FW releases (or else CI will fail) but _before_ the CLI
8079
release PR. Releases are built before the PR is sent for review, so any changes after that point won't be included in the release.
8180

8281
**AFTER a major CLI release:**

0 commit comments

Comments
 (0)