Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(@schematics/angular): read build-angular's version from package.json #20577

Merged
merged 1 commit into from Apr 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/process/release.md
Expand Up @@ -153,9 +153,7 @@ using the `--githubToken` flag. You just then have to confirm the draft.

**For each released version**:

Update the package versions to reflect the *next* release version in **both**:
1. `version` in [`package.json`](https://github.com/angular/angular-cli/blob/master/package.json#L3)
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)
Update `version` in root [`package.json`](/package.json#L3) to the *next* release version.

```sh
git checkout -b release-bump-vXX
Expand Down
9 changes: 4 additions & 5 deletions packages/schematics/angular/utility/latest-versions.ts
Expand Up @@ -14,11 +14,10 @@ export const latestVersions = {
TypeScript: '~4.2.3',
TsLib: '^2.1.0',

// The versions below must be manually updated when making a new devkit release.
// For our e2e tests, these versions must match the latest tag present on the branch.
// During RC periods they will not match the latest RC until there's a new git tag, and
// should not be updated.
DevkitBuildAngular: '~12.0.0-rc.0',
// Since @angular-devkit/build-angular and @schematics/angular are always
// published together from the same monorepo, and they are both
// non-experimental, they will always have the same version.
DevkitBuildAngular: '~' + require('../package.json')['version'],

ngPackagr: '^12.0.0-next.8',
};