mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 22:51:51 +00:00
Fixing make release
- amending a tagged commit makes the commit not match the tag.
This commit is contained in:
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
Block a user