Run post release tool cleanups.
()
| 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) { |