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-10 21:25:51 +0300
committerisaacs <i@izs.me>2011-01-10 21:31:15 +0300
commit2d27e741e46d0aec910ae0338f77d5335a2ddf42 (patch)
treeb0986d29c71cf9c48a5ba1ffe80c005e862c5f59
parent1dcd5f06a07b2df542d29742cb1a354e1ab812bd (diff)
Add a 'publish' make target
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f68a9d1ef..e85774485 100644
--- a/Makefile
+++ b/Makefile
@@ -39,4 +39,10 @@ man1/%/: doc/%/
test:
./test/run.sh
+publish:
+ [ "$(shell cat .git/HEAD)" = "ref: refs/heads/master" ] \
+ && git tag -s -m v$(shell npm -v) v$(shell npm -v) \
+ && git push origin master \
+ && npm publish
+
.PHONY: install install-dev link doc clean uninstall test man