mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 13:45:36 +03:00
chore: fix publishing @next from release branch (#4418)
This commit is contained in:
parent
8f7286175e
commit
2bfee8dc0a
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user