mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
13 lines
367 B
JavaScript
13 lines
367 B
JavaScript
const {execSync} = require('child_process');
|
|
|
|
const package = require('../package.json');
|
|
let version = package.version;
|
|
const dashIndex = version.indexOf('-');
|
|
if (dashIndex !== -1)
|
|
version = version.substring(0, dashIndex);
|
|
version += '-next.' + Date.now();
|
|
console.log('Setting version to ' + version);
|
|
|
|
execSync(`npm --no-git-tag-version version ${version}`);
|
|
|