chore: fix utils/apply_next_version.js

This commit is contained in:
Andrey Lushnikov 2020-03-02 18:17:16 -08:00
parent 57c45f0d1f
commit 62e2570e67
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
const {execSync} = require('child_process');
const package = require('../package.json');
let version = package.version;
const dashIndex = version.indexOf('-');

View File

@ -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