From 7e30b2dc4966b151087a64a806ea9da77dc7507c Mon Sep 17 00:00:00 2001 From: Felix Winterhalter Date: Wed, 16 Oct 2024 15:13:53 +0200 Subject: [PATCH] fix: Base new version off lastStable version --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 21464b5..a258693 100644 --- a/index.js +++ b/index.js @@ -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);