From d52103cab333727c69800a74e89e1d6cd0389d68 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 10 Oct 2014 17:32:57 +1100 Subject: [PATCH] add git tags to `make publish` #10 --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c409d26921..f9ceb13cdd 100644 --- a/Makefile +++ b/Makefile @@ -8,12 +8,12 @@ export NODE_ENV = test clean: rm -rf coverage templates.json test/tmp dist -test: - $(MOCHA_CMD) - bench: node node_modules/matcha/bin/_matcha +test: + $(MOCHA_CMD) + test-cov: rm -rf coverage node $(ISTANBUL_CMD) $(MOCHA_CMD) -- @@ -39,6 +39,8 @@ build: publish: rm -rf node_modules + + git pull --rebase npm install node bin/cache-templates @@ -47,6 +49,7 @@ publish: test -f templates.json npm publish - # todo - auto-create tag + git tag "v`6to5 -V`" + git push --tags rm -rf templates.json