mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
chore(release): improve the release script
This commit is contained in:
parent
fe7decd1b0
commit
94b5f2dadb
2 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue