Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-06-13 20:56:26 +0400
committerisaacs <i@izs.me>2013-06-13 20:56:26 +0400
commitdf5b2cf33010467507fc6f504b06462aee278328 (patch)
tree3e79bb66eefdfdb9820344918131b5bc72143e0e /Makefile
parent616f0e06d12370c896194d95acde05b0a6d97245 (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--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 82fa8b65e..61251fbb2 100644
--- a/Makefile
+++ b/Makefile
@@ -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}') &&\