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

Method cleanup

ng-dev/release/publish/index.ts:128–135  ·  view source on GitHub ↗

Run post release tool cleanups.

()

Source from the content-addressed store, hash-verified

126
127 /** Run post release tool cleanups. */
128 private async cleanup(): Promise<void> {
129 // Return back to the git state from before the release tool ran.
130 this._git.checkout(this.previousGitBranchOrRevision, true);
131 // Ensure we are back on the Node.js version expected by the original git state.
132 await ExternalCommands.invokeNvmInstall(this._projectRoot, true);
133 // Ensure log out of NPM.
134 await NpmCommand.logout(this._config.publishRegistry);
135 }
136
137 /** Prompts the caretaker for a release action that should be performed. */
138 private async _promptForReleaseAction(activeTrains: ActiveReleaseTrains) {

Callers 2

runMethod · 0.95
mergeMethod · 0.80

Calls 1

checkoutMethod · 0.80

Tested by

no test coverage detected