Skip to content

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

chore: fix publishing @next from release branch (#4418)

Andrey Lushnikov2bfee8dc0aad
diff --git a/utils/update_version.js b/utils/update_version.js
index cfc74724e8..6b8b8b1a0e 100755
--- a/utils/update_version.js
+++ b/utils/update_version.js
@@ -46,6 +46,8 @@ let version = process.argv[2];
if (version === '--next') {
const packageJSON = require('../package.json');
version = packageJSON.version;
+ if (!version.includes('-'))
+ version += '-next';
version += '.' + Date.now();
console.log('Setting version to ' + version);
} else {