Fixing `make release` - amending a tagged commit makes the commit not match the tag.
parent
55d892adc8
commit
a3de7f3222
5
Makefile
5
Makefile
|
@ -20,6 +20,7 @@ endif
|
||||||
|
|
||||||
release: verify-tag
|
release: verify-tag
|
||||||
@ OLD_TAG=`git describe --abbrev=0 --tags` && \
|
@ OLD_TAG=`git describe --abbrev=0 --tags` && \
|
||||||
npm version "$(TAG)" && \
|
|
||||||
replace "$${OLD_TAG/v/}" "$(TAG)" -- nvm.sh install.sh README.markdown && \
|
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)"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue