* Gets the new version that will be published. * Note: Might be overridden by derived actions for e.g. cutting an RC.
()
| 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; |
nothing calls this directly
no test coverage detected