diff --git a/utils/apply_next_version.js b/utils/apply_next_version.js index 1cbcc4ca30..c419b6e3f9 100644 --- a/utils/apply_next_version.js +++ b/utils/apply_next_version.js @@ -1,3 +1,5 @@ +const {execSync} = require('child_process'); + const package = require('../package.json'); let version = package.version; const dashIndex = version.indexOf('-'); diff --git a/utils/publish_all_packages.sh b/utils/publish_all_packages.sh index d3a19778b5..82e935b1d9 100755 --- a/utils/publish_all_packages.sh +++ b/utils/publish_all_packages.sh @@ -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