Fixing `make release` - amending a tagged commit makes the commit not match the tag.

master
Jordan Harband 2014-07-17 00:25:14 -07:00
parent 55d892adc8
commit a3de7f3222
1 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@ endif
release: verify-tag
@ OLD_TAG=`git describe --abbrev=0 --tags` && \
npm version "$(TAG)" && \
replace "$${OLD_TAG/v/}" "$(TAG)" -- nvm.sh install.sh README.markdown && \
git commit --amend nvm.sh install.sh README.markdown package.json
git commit -m "v$(TAG)" nvm.sh install.sh README.markdown package.json && \
git tag "v$(TAG)"