Permalink
Browse files

Fix 'make publish'

  • Loading branch information...
1 parent 66c7eb9 commit 335b387dcd8fd926eec4cfd11207a0c649c2f1c4 @isaacs isaacs committed Jan 6, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 Makefile
View
@@ -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

0 comments on commit 335b387

Please sign in to comment.