Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .ng-dev/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,28 @@ export const releasePackages = [

/** Configuration for the `ng-dev release` command. */
export const release: ReleaseConfig = {
releaseNotes: {useReleaseTitle: true, groupOrder: releasePackages},
releaseNotes: {
useReleaseTitle: true,
groupOrder: releasePackages,
categorizeCommit: commit => {
const [packageName, entryPointName] = commit.scope.split('/');
const entryPointPrefix = entryPointName ? `**${entryPointName}:** ` : '';

// In the `angular/components` repository, commit messages may include entry-point
// information in the scope. We expect commits to be grouped based on their package
// name. Commits are then described with their subject and optional entry-point name.
return {
groupName: packageName,
description: `${entryPointPrefix}${commit.subject}`,
};
},
},
publishRegistry: 'https://wombat-dressing-room.appspot.com',
npmPackages: releasePackages.map(pkg => `@angular/${pkg}`),
buildPackages: async () => {
// The `performNpmReleaseBuild` function is loaded at runtime as loading of the
// script results in an invocation of Bazel for any `yarn ng-dev` command.
const {performNpmReleaseBuild} = await import('../scripts/build-packages-dist');
return performNpmReleaseBuild();
}
},
};