Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Do a git-clean when publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jan 13, 2012
1 parent 7610c37 commit 9fec6da
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Expand Up @@ -106,9 +106,10 @@ 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 -d v$(shell npm -v) || true
@git push origin :v$(shell npm -v) || true
@npm unpublish npm@$(shell npm -v) || true
git clean -fd
git tag -s -m v$(shell npm -v) v$(shell npm -v) &&\
git push origin --tags &&\
npm publish &&\
Expand Down

0 comments on commit 9fec6da

Please sign in to comment.