-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: lay foundation for migrating to ng-dev release tooling (#22167)
Configure the release tooling from ng-dev. (cherry picked from commit d66cb83)
- Loading branch information
1 parent
56851bf
commit 97bad00
Showing
4 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import {join} from 'path'; | ||
import {ReleaseConfig} from '@angular/dev-infra-private/release/config'; | ||
import {releasePackages} from '../tools/release/release-output/release-packages'; | ||
import {promptAndGenerateChangelog} from '../tools/release/changelog'; | ||
|
||
/** Configuration for the `ng-dev release` command. */ | ||
export const release: ReleaseConfig = { | ||
publishRegistry: 'https://wombat-dressing-room.appspot.com', | ||
npmPackages: releasePackages.map(pkg => `@angular/${pkg}`), | ||
buildPackages: async () => { | ||
// The performNpmReleaseBuild function is loaded at runtime as the loading the script causes an | ||
// invocation of bazel. | ||
const {performNpmReleaseBuild} = require(join(__dirname, '../scripts/build-packages-dist')); | ||
return performNpmReleaseBuild(); | ||
}, | ||
// TODO: This can be removed once there is an org-wide tool for changelog generation. | ||
generateReleaseNotesForHead: async () => { | ||
await promptAndGenerateChangelog(join(__dirname, '../CHANGELOG.md')); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters