add makefile release task #464

Merged
merged 1 commit into from Jul 10, 2014

2 participants

@koenpunt

Added simple release task to Makefile, replaces occurrences of last git tag (git describe --abbrev=0 --tags) in README.markdown and install.sh with supplied TAG variable and tags the repo with supplied tag:

make release TAG=0.11.0
@ljharb ljharb and 1 other commented on an outdated diff Jul 10, 2014
@@ -13,3 +13,11 @@ test: $(SHELLS)
default: test
+verify-tag:
+ifndef TAG
+ $(error TAG is undefined)
+endif
+
+release: verify-tag
+ @replace "`git describe --abbrev=0 --tags`" "$(TAG)" -- ./install.sh README.markdown
@ljharb
Collaborator
ljharb added a note Jul 10, 2014

we'll also need the same in nvm.sh

The version is not specified in nvm.sh. Or is that not what you mean?

But I see package.json does, but without the v prefix. Can we add the v there as well?

Oh found it, --version returns the version of course

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@koenpunt

Updated to use npm version, which creates a new tag and commit, which can be amended afterwards.

@ljharb
Collaborator

Awesome, this works great. Thanks!

@ljharb ljharb merged commit 78ff9a2 into creationix:master Jul 10, 2014

1 check passed

Details continuous-integration/travis-ci The Travis CI build passed
@koenpunt koenpunt deleted the koenpunt:release-task branch Jul 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment