mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
chore: fix utils/apply_next_version.js
This commit is contained in:
parent
57c45f0d1f
commit
62e2570e67
@ -1,3 +1,5 @@
|
||||
const {execSync} = require('child_process');
|
||||
|
||||
const package = require('../package.json');
|
||||
let version = package.version;
|
||||
const dashIndex = version.indexOf('-');
|
||||
|
@ -21,7 +21,7 @@ if [[ $# < 1 ]]; then
|
||||
fi
|
||||
|
||||
if [[ $(git rev-parse --abbrev-ref HEAD) != "master" ]]; then
|
||||
echo "ERROR: Cannot publish from branch other then 'master'"
|
||||
echo "ERROR: Cannot publish from branch '$(git rev-parse --abbrev-ref HEAD)' - it has to be 'master'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user