-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Expand file tree
/
Copy pathrelease.mjs
More file actions
30 lines (28 loc) · 1.17 KB
/
release.mjs
File metadata and controls
30 lines (28 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import semver from 'semver';
import { releasePackages } from '../scripts/packages.mts';
/**
* Configuration for the `ng-dev release` command.
*
* @type { import("@angular/ng-dev").ReleaseConfig }
*/
export const release = {
representativeNpmPackage: '@angular/cli',
npmPackages: releasePackages.map(({ name, experimental }) => ({ name, experimental })),
buildPackages: async () => {
// The `performNpmReleaseBuild` function is loaded at runtime to avoid loading additional
// files and dependencies unless a build is required.
const { performNpmReleaseBuild } = await import('../scripts/build-packages-dist.mts');
return performNpmReleaseBuild();
},
prereleaseCheck: async (newVersionStr) => {
const newVersion = new semver.SemVer(newVersionStr);
const { assertValidDependencyRanges } =
await import('../scripts/release-checks/dependency-ranges/index.mts');
await assertValidDependencyRanges(newVersion, releasePackages);
},
releaseNotes: {
groupOrder: ['@angular/cli', '@schematics/angular', '@angular-devkit/schematics-cli'],
},
publishRegistry: 'https://wombat-dressing-room.appspot.com',
releasePrLabels: ['action: merge'],
};