simplify make publish
This commit is contained in:
parent
0a287aba6c
commit
965ea56255
13
Makefile
13
Makefile
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user