Permalink
Browse files

Add `make publish`.

  • Loading branch information...
1 parent 8d0c806 commit 9ebbca77eec5c242e5820f4b38c8969149a5819d @StanAngeloff committed Dec 9, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 Makefile
View
@@ -1,11 +1,17 @@
HOST = 127.0.0.1
PORT = 3030
-.PHONY: test
+.PHONY: test publish
test:
@@rm -f test/.server.pid
@@test/server.js '$(HOST)' '$(PORT)' & ;; \
echo $$! > test/.server.pid
@@bin/cli.js --no-verify -- '$(HOST)' '$(PORT)'
@@kill $$( cat test/.server.pid )
+
+publish: VERSION:=$(shell cat package.json | grep 'version' | cut -d':' -f2 | cut -d'"' -f2)
+publish:
+ git tag -am "v$(VERSION)" "$(VERSION)"
+ npm publish
+ git push --tags

0 comments on commit 9ebbca7

Please sign in to comment.