Skip to content

Commit 068e1e0

Browse files
committed
devops: fix next version generation
1 parent ac8a30c commit 068e1e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/update_version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if (version === '--next') {
4747
const packageJSON = require('../package.json');
4848
version = packageJSON.version;
4949
const dashIndex = version.indexOf('-');
50-
if (dashIndex === -1)
50+
if (dashIndex !== -1)
5151
version = version.substring(0, dashIndex);
5252
version += '-next.' + Date.now();
5353
console.log('Setting version to ' + version);

0 commit comments

Comments
 (0)