Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 94b5f2d

Browse files
committed
chore(release): improve the release script
1 parent fe7decd commit 94b5f2d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

scripts/jenkins/bump-remove-snapshot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ echo "-- local version: $VERSION"
1616

1717
echo "-- commit and tag with v$VERSION"
1818
git add package.json
19-
git commit -m "chore(release): v$VERSION"
19+
git commit -m "chore(release): cut v$VERSION release"
2020
git tag -m "v$VERSION" v$VERSION

scripts/jenkins/release.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ BUMP_TYPE=$1
1212

1313
# Enable tracing and exit on first failure
1414
set -xe
15+
16+
# Jump onto the master branch and make sure we are using the latest
17+
git checkout -f master
18+
git merge --ff-only origin/master
19+
20+
1521
# Normalize working dir to script dir
1622
cd `dirname $0`/../..
1723

@@ -27,12 +33,10 @@ cd `dirname $0`/../..
2733

2834
echo "-- push to Github"
2935
# push to github
30-
git push
36+
git push --all
3137

3238
# Update code.angularjs.org
3339
./scripts/code.angularjs.org/publish.sh
3440

3541
# Update bower
3642
./scripts/bower/publish.sh
37-
38-

0 commit comments

Comments
 (0)