Skip to content

Commit

Permalink
devops: fix next version generation
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov committed Apr 21, 2020
1 parent ac8a30c commit 068e1e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/update_version.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if (version === '--next') {
const packageJSON = require('../package.json');
version = packageJSON.version;
const dashIndex = version.indexOf('-');
if (dashIndex === -1)
if (dashIndex !== -1)
version = version.substring(0, dashIndex);
version += '-next.' + Date.now();
console.log('Setting version to ' + version);
Expand Down

0 comments on commit 068e1e0

Please sign in to comment.