Skip to content

Commit

Permalink
misc: allow manually setting the release version
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Jul 8, 2020
1 parent 9e627e0 commit 0a2b98e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ if git rev-parse "$version" >/dev/null 2>&1; then
exit 1
fi

# --- try to bump version of package.json, fail if duplicated.
npm version "$version" --no-git-tag-version
git_changes=$(git status --porcelain | grep package.json)
if [ -z "${git_changes}" ]; then
# --- try to bump version of package.json
if ! npm version "$version" --no-git-tag-version --allow-same-version; then
echo "npm bump failed"
exit 1
fi
Expand Down

0 comments on commit 0a2b98e

Please sign in to comment.