2019-11-19 03:18:28 +01:00
|
|
|
const package = require('../package.json');
|
|
|
|
|
let version = package.version;
|
|
|
|
|
const dashIndex = version.indexOf('-');
|
|
|
|
|
if (dashIndex !== -1)
|
|
|
|
|
version = version.substring(0, dashIndex);
|
2020-02-29 01:17:59 +01:00
|
|
|
version += '-next.' + Date.now();
|
2019-11-19 03:18:28 +01:00
|
|
|
console.log('Setting version to ' + version);
|
2020-02-28 20:02:42 +01:00
|
|
|
|
|
|
|
|
execSync(`npm --no-git-tag-version version ${version}`);
|
|
|
|
|
|