Skip to content

Commit

Permalink
[chore] clean publish resources before start...
Browse files Browse the repository at this point in the history
* remove .branch and .version before publish.
  • Loading branch information
diasbruno committed Jun 10, 2017
1 parent 00ea6fe commit 4b69478
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ build-docs:
@$(JQ) '.version' package.json | cut -d\" -f2 > .version

.branch:
git branch | grep '^*' | awk '{ print $$2 }' > .branch
@echo "[Release from branch]"
@git branch | grep '^*' | awk '{ print $$2 }' > .branch
@echo "Current branch: `cat .branch`"

release-commit:
git commit --allow-empty -m "Release v`cat .version`."
Expand All @@ -83,10 +85,12 @@ publish-version: release-commit release-tag
git push $(REMOTE) "`cat .branch`" "v`cat .version`"
npm publish

publish-finished:
publish-finished: clean

clean:
@rm -rf .version .branch

pre-publish: .branch .version deps-project tests-ci build
pre-publish: clean .branch .version deps-project tests-ci build

publish: pre-publish publish-version publish-finished

Expand Down

0 comments on commit 4b69478

Please sign in to comment.