diff --git a/libs/scripts/release.sh b/libs/scripts/release.sh index 7a0bbb52523..3e07ce27377 100755 --- a/libs/scripts/release.sh +++ b/libs/scripts/release.sh @@ -51,11 +51,11 @@ function bump-npm () { fi # only allow tags/commits found on master, release branches, or tags to be deployed + echo "tag has to be on master or a release branch" git branch -a --contains ${GIT_TAG} \ | tee /dev/tty \ | grep -Eq 'remotes/origin/master|remotes/origin/release' \ - || echo "tag not found on master nor release branches" \ - && exit 1 + || exit 1 # Ensure working directory clean git reset --hard ${GIT_TAG}