mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
devops: fix next version generation
This commit is contained in:
parent
ac8a30c526
commit
068e1e00af
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user