Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-01-11 22:05:29 +0300
committerisaacs <i@izs.me>2011-01-11 22:07:40 +0300
commit5846adf42b7bdbf19ed8397dd2890d9df0f5d8f6 (patch)
tree04fc2a583d54bea5beaf76279e2d01c74165a702 /Makefile
parentd07c76c0f8f48d6aed3cc054ba64d260438f6cb9 (diff)
version bumper
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e85774485..304353f52 100644
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,11 @@ man1/%/: doc/%/
test:
./test/run.sh
-publish:
+version: link
+ git add package.json \
+ && git ci -m v$(shell npm -v)
+
+publish: link
[ "$(shell cat .git/HEAD)" = "ref: refs/heads/master" ] \
&& git tag -s -m v$(shell npm -v) v$(shell npm -v) \
&& git push origin master \