Update aws release script to change git branches automatically

This commit is contained in:
Tankred Hase 2014-10-20 16:41:19 +02:00
parent 1fbb6b0c91
commit 84ba1e5c44
1 changed files with 8 additions and 1 deletions

View File

@ -4,6 +4,10 @@
cd `dirname $0`
cd ..
# switch branch
git checkout aws-dist
git merge master --no-edit
# build and test
rm -rf node_modules/
npm cache clear
@ -22,4 +26,7 @@ git add node_modules/ dist/
git commit -m "Update aws-dist"
# push to aws
git aws.push
git aws.push
# switch back to master branch
git checkout master