devops: fix update_version.js script

This commit is contained in:
Andrey Lushnikov 2020-04-08 16:25:32 -07:00
parent 2d57fff0be
commit 2fd7f4e111

View File

@ -45,7 +45,7 @@ if (process.argv.length !== 3) {
let version = process.argv[2];
if (version === '--next') {
const packageJSON = require('../package.json');
version = package.version;
version = packageJSON.version;
const dashIndex = version.indexOf('-');
if (dashIndex === -1)
version = version.substring(0, dashIndex);