Skip to content

Commit

Permalink
Merge pull request #1792 from intuit/tagless-next-version
Browse files Browse the repository at this point in the history
fix running version on prerelease branch with no reachable tags
  • Loading branch information
hipstersmoothie committed Feb 11, 2021
2 parents 9d2fc40 + 9957148 commit bac2eaf
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 bac2eaf

Please sign in to comment.