From 965ea56255556b9719cdf17a5f06f3fd8766145e Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Wed, 15 Oct 2014 20:33:55 +1100 Subject: [PATCH] simplify make publish --- Makefile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 9173ed25d1..3dd836c371 100644 --- a/Makefile +++ b/Makefile @@ -40,20 +40,17 @@ build: rm -rf templates.json publish: - if test -n "`git status -s`"; then echo "uncommitted changes"; exit 1; fi - - rm -rf node_modules - git pull --rebase - npm install - node bin/cache-templates make test + node bin/cache-templates test -f templates.json + + read -p "Version: " version \ + npm version $$VERSION --message "v%s" npm publish - git tag "v`6to5 -V`" - git push --tags + git push --follow-tags rm -rf templates.json