Skip to content

Commit

Permalink
Makefile: add publish-force target
Browse files Browse the repository at this point in the history
  • Loading branch information
4z3 committed Aug 17, 2011
1 parent 14ec134 commit 870377a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

.PHONY: all test publish
.PHONY: all test publish publish-force
all: select-target

test:
Expand All @@ -14,6 +14,9 @@ test:
publish: version := $(shell tools/read-version < package.json)
publish:
tools/is-clean-working-directory
git tag --force v$(version)
git tag $(force) v$(version)
git push
npm publish --force
npm publish $(force)

publish-force: force := --force
publish-force: publish

0 comments on commit 870377a

Please sign in to comment.