Skip to content
Browse files

Add a 'publish' make target

  • Loading branch information...
1 parent 1dcd5f0 commit 2d27e741e46d0aec910ae0338f77d5335a2ddf42 @isaacs isaacs committed Jan 10, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 Makefile
View
6 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

0 comments on commit 2d27e74

Please sign in to comment.
Something went wrong with that request. Please try again.