diff options
author | isaacs <i@izs.me> | 2011-01-10 21:25:51 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-01-10 21:31:15 +0300 |
commit | 2d27e741e46d0aec910ae0338f77d5335a2ddf42 (patch) | |
tree | b0986d29c71cf9c48a5ba1ffe80c005e862c5f59 | |
parent | 1dcd5f06a07b2df542d29742cb1a354e1ab812bd (diff) |
Add a 'publish' make target
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |