We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4cc7a8 commit f283230Copy full SHA for f283230
1 file changed
lib/index.js
@@ -70,9 +70,9 @@ const runTasks = async (opts, di) => {
70
const incrementBase = { latestVersion, increment, isPreRelease, preReleaseId };
71
72
const { snapshot } = config.options;
73
- if (snapshot && !incrementBase.latestVersion.startsWith('0.0.0')) {
+ if (snapshot && (!incrementBase.latestVersion.startsWith('0.0.0') || incrementBase.latestVersion === '0.0.0')) {
74
// Reading the latest version first allows to increment the final counter, fake it if it's not a snapshot:
75
- incrementBase.latestVersion = `0.0.0-${snapshot}.-1`;
+ incrementBase.latestVersion = `0.0.0-0`;
76
}
77
78
let version;
0 commit comments