mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00: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];
|
let version = process.argv[2];
|
||||||
if (version === '--next') {
|
if (version === '--next') {
|
||||||
const packageJSON = require('../package.json');
|
const packageJSON = require('../package.json');
|
||||||
version = package.version;
|
version = packageJSON.version;
|
||||||
const dashIndex = version.indexOf('-');
|
const dashIndex = version.indexOf('-');
|
||||||
if (dashIndex === -1)
|
if (dashIndex === -1)
|
||||||
version = version.substring(0, dashIndex);
|
version = version.substring(0, dashIndex);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user