simplify make publish

This commit is contained in:
Sebastian McKenzie 2014-10-15 20:33:55 +11:00
parent 0a287aba6c
commit 965ea56255

View File

@ -40,20 +40,17 @@ build:
rm -rf templates.json rm -rf templates.json
publish: publish:
if test -n "`git status -s`"; then echo "uncommitted changes"; exit 1; fi
rm -rf node_modules
git pull --rebase git pull --rebase
npm install
node bin/cache-templates
make test make test
node bin/cache-templates
test -f templates.json test -f templates.json
read -p "Version: " version \
npm version $$VERSION --message "v%s"
npm publish npm publish
git tag "v`6to5 -V`" git push --follow-tags
git push --tags
rm -rf templates.json rm -rf templates.json