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);