Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: fix update_version.js script

Andrey Lushnikov2fd7f4e111e7
diff --git a/utils/update_version.js b/utils/update_version.js
index 7e009251da..a0838672e3 100755
--- a/utils/update_version.js
+++ b/utils/update_version.js
@@ -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);