MCPcopy Create free account
hub / github.com/angular/dev-infra / buildReleaseForCurrentBranch

Function buildReleaseForCurrentBranch

ng-dev/release/publish/actions.ts:449–461  ·  view source on GitHub ↗

* Builds the release output for the current branch. Assumes the node modules * to be already installed for the current branch. * * @returns A list of built release packages.

()

Source from the content-addressed store, hash-verified

447 this.git.run(['add', ...files]);
448 // Note: `--no-verify` skips the majority of commit hooks here, but there are hooks
449 // like `prepare-commit-message` which still run. We have set the `HUSKY=0` environment
450 // variable at the start of the publish command to ignore such hooks as well.
451 this.git.run(['commit', '-q', '--no-verify', '-m', message, ...files]);
452 }
453
454 /**
455 * Builds the release output for the current branch. Assumes the node modules
456 * to be already installed for the current branch.
457 *
458 * @returns A list of built release packages.
459 */
460 protected async buildReleaseForCurrentBranch(): Promise<BuiltPackageWithInfo[]> {
461 // Note that we do not directly call the build packages function from the release
462 // config. We only want to build and publish packages that have been configured in the given
463 // publish branch. e.g. consider we publish patch version and a new package has been
464 // created in the `next` branch. The new package would not be part of the patch branch,

Callers

nothing calls this directly

Tested by

no test coverage detected