diff options
author | isaacs <i@izs.me> | 2013-06-13 20:56:26 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-06-13 20:56:26 +0400 |
commit | df5b2cf33010467507fc6f504b06462aee278328 (patch) | |
tree | 3e79bb66eefdfdb9820344918131b5bc72143e0e /Makefile | |
parent | 616f0e06d12370c896194d95acde05b0a6d97245 (diff) |
Makefile: git push on publish
I keep forgetting to do this. We have more committers now, releases
sometimes end up on a merge branch, which is unnecessarily ugly.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -102,9 +102,10 @@ test: node cli.js test publish: link doc - @git push origin :v$(shell npm -v) || true - @npm unpublish npm@$(shell npm -v) || true - git clean -fd + @git push origin :v$(shell npm -v) 2>&1 || true + @npm unpublish npm@$(shell npm -v) 2>&1 || true + git clean -fd &&\ + git push origin &&\ git push origin --tags &&\ npm publish &&\ npm tag npm@$(shell npm -v) $(shell npm -v | awk -F. '{print $$1 "." $$2}') &&\ |