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

Function getNewVersion

ng-dev/release/publish/actions/shared/cut-prerelease.ts:97–103  ·  view source on GitHub ↗

* Gets the new version that will be published. * Note: Might be overridden by derived actions for e.g. cutting an RC.

()

Source from the content-addressed store, hash-verified

95 * Note: Might be overridden by derived actions for e.g. cutting an RC.
96 */
97 async getNewVersion(): Promise<semver.SemVer> {
98 if (await this.shouldUseExistingVersion) {
99 return this.releaseTrain.version;
100 } else {
101 return semverInc(this.releaseTrain.version, 'prerelease');
102 }
103 }
104
105 private _getBranch(): string {
106 return this.releaseTrain.branchName;

Callers

nothing calls this directly

Calls 1

semverIncFunction · 0.85

Tested by

no test coverage detected