Skip to content

Commit

Permalink
fix: Release script
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed May 18, 2020
1 parent 4ef66b6 commit 161b98a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

function bump_all() {
versionNumber=$(npm version "$1")
version="v$versionNumber"
}

function help() {
Expand All @@ -27,8 +26,8 @@ if [ -d ".git" ]; then
else
bump_all "$1"
git add .
git commit -m "Bump to ${version}"
git tag -a "${version}" -m "${version}"
git commit -m "Bump to ${versionNumber}"
git tag -a "${versionNumber}" -m "${versionNumber}"
git push origin --tags
fi
else
Expand Down

0 comments on commit 161b98a

Please sign in to comment.