Skip to content

Commit

Permalink
fix running version on prerelease branch with no reachable tags
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Feb 11, 2021
1 parent 9d2fc40 commit 9957148
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/auto.ts
Expand Up @@ -1755,9 +1755,10 @@ export default class Auto {
}

const isPrerelease = this.inPrereleaseBranch();
const [, latestTagInBranch] = await on(this.git.getLatestTagInBranch());
const lastRelease =
from ||
(isPrerelease && (await this.git.getLatestTagInBranch())) ||
(isPrerelease && latestTagInBranch) ||
(await this.git.getLatestRelease());
let calculatedBump = await this.release.getSemverBump(lastRelease);

Expand Down

0 comments on commit 9957148

Please sign in to comment.