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>2012-01-06 05:47:46 +0400
committerisaacs <i@izs.me>2012-01-06 05:47:46 +0400
commit335b387dcd8fd926eec4cfd11207a0c649c2f1c4 (patch)
treed18a98f20f9e5f0435acf067a681fd57b801b075 /Makefile
parent66c7eb98541c2b9d89fae636052407e072191e5a (diff)
Fix 'make publish'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d7abcfe84..7d3e10653 100644
--- a/Makefile
+++ b/Makefile
@@ -109,10 +109,13 @@ version: link
git ci -m v$(shell npm -v)
publish: link doc
+ git tag -d v$(shell npm -v) || true
+ git push origin :v$(shell npm -v) || true
+ npm unpublish npm@$(shell npm -v) || true
git tag -s -m v$(shell npm -v) v$(shell npm -v) &&\
git push origin --tags &&\
npm publish &&\
- npm tag npm@$(shell npm -v) $(shell npm -v | awk -F. '{print $1 "." $2}') &&\
+ npm tag npm@$(shell npm -v) $(shell npm -v | awk -F. '{print $$1 "." $$2}') &&\
make doc-publish &&\
make zip-publish