add git tags to make publish #10

This commit is contained in:
Sebastian McKenzie
2014-10-10 17:32:57 +11:00
parent 88b5cb5ef9
commit d52103cab3

View File

@@ -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