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

Function perform

ng-dev/release/publish/actions/shared/cut-prerelease.ts:63–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 }
62
63 override async perform() {
64 const branchName = this._getBranch();
65 const newVersion = await this.getNewVersion();
66 const compareVersionForReleaseNotes = await this.releaseNotesCompareVersion;
67
68 const {pullRequest, releaseNotes, builtPackagesWithInfo, beforeStagingSha} =
69 await this.checkoutBranchAndStageVersion(
70 newVersion,
71 compareVersionForReleaseNotes,
72 branchName,
73 );
74
75 await this.promptAndWaitForPullRequestMerged(pullRequest);
76 await this.publish(
77 builtPackagesWithInfo,
78 releaseNotes,
79 beforeStagingSha,
80 branchName,
81 this.npmDistTag,
82 {showAsLatestOnGitHub: false},
83 );
84
85 // If the pre-release has been cut from a train that is not corresponding to
86 // the next release-train, cherry-pick the changelog into the primary development
87 // branch (i.e. the next branch).
88 if (this.releaseTrain !== this.active.next) {
89 await this.cherryPickChangelogIntoNextBranch(releaseNotes, branchName);
90 }
91 }
92
93 /**
94 * Gets the new version that will be published.

Callers

nothing calls this directly

Calls 1

getNewVersionMethod · 0.45

Tested by

no test coverage detected