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');
|
const package = require('../package.json');
|
||||||
let version = package.version;
|
let version = package.version;
|
||||||
const dashIndex = version.indexOf('-');
|
const dashIndex = version.indexOf('-');
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ if [[ $# < 1 ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $(git rev-parse --abbrev-ref HEAD) != "master" ]]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue