chore: fix publishing @next from release branch (#4418)

This commit is contained in:
Andrey Lushnikov 2020-11-12 12:18:20 -08:00 committed by GitHub
parent 8f7286175e
commit 2bfee8dc0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,8 @@ let version = process.argv[2];
if (version === '--next') { if (version === '--next') {
const packageJSON = require('../package.json'); const packageJSON = require('../package.json');
version = packageJSON.version; version = packageJSON.version;
if (!version.includes('-'))
version += '-next';
version += '.' + Date.now(); version += '.' + Date.now();
console.log('Setting version to ' + version); console.log('Setting version to ' + version);
} else { } else {