Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add `make publish`.

  • Loading branch information...
commit 9ebbca77eec5c242e5820f4b38c8969149a5819d 1 parent 8d0c806
@StanAngeloff authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 Makefile
View
8 Makefile
@@ -1,7 +1,7 @@
HOST = 127.0.0.1
PORT = 3030
-.PHONY: test
+.PHONY: test publish
test:
@@rm -f test/.server.pid
@@ -9,3 +9,9 @@ test:
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
Please sign in to comment.
Something went wrong with that request. Please try again.