chore(release): improve the release script

This commit is contained in:
Igor Minar 2013-12-19 15:47:16 -08:00
parent fe7decd1b0
commit 94b5f2dadb
2 changed files with 8 additions and 4 deletions

View file

@ -16,5 +16,5 @@ echo "-- local version: $VERSION"
echo "-- commit and tag with v$VERSION"
git add package.json
git commit -m "chore(release): v$VERSION"
git commit -m "chore(release): cut v$VERSION release"
git tag -m "v$VERSION" v$VERSION

View file

@ -12,6 +12,12 @@ BUMP_TYPE=$1
# Enable tracing and exit on first failure
set -xe
# Jump onto the master branch and make sure we are using the latest
git checkout -f master
git merge --ff-only origin/master
# Normalize working dir to script dir
cd `dirname $0`/../..
@ -27,12 +33,10 @@ cd `dirname $0`/../..
echo "-- push to Github"
# push to github
git push
git push --all
# Update code.angularjs.org
./scripts/code.angularjs.org/publish.sh
# Update bower
./scripts/bower/publish.sh