Skip to content

Commit

Permalink
fix: Base new version off lastStable version
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackclaws committed Oct 16, 2024
1 parent ff1f342 commit 7e30b2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ class ConventionalChangelog extends Plugin {
) {
return semver.inc(latestVersion, `pre${releaseTypeToLastNonPrerelease}`, preReleaseId);
}
else {
return semver.inc(lastStableTag, `pre${releaseTypeToLastNonPrerelease}`, preReleaseId);
}
}

return semver.inc(latestVersion, 'prerelease', preReleaseId);
Expand Down

0 comments on commit 7e30b2d

Please sign in to comment.