mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-28 06:07:53 +03:00
devops: fix update_version.js script
This commit is contained in:
parent
2d57fff0be
commit
2fd7f4e111
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user