Skip to content

Commit

Permalink
Exit publish script on invalid args
Browse files Browse the repository at this point in the history
  • Loading branch information
rzane committed Oct 7, 2020
1 parent 16efc68 commit 8e299af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/publish
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -euo pipefail

if [ $# -ne 1 ]; then
echo "Usage: bin/publish [version]"
exit 1
fi

yarn version --new-version "$1" --no-git-tag-version
Expand Down

0 comments on commit 8e299af

Please sign in to comment.