mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
30 lines
645 B
Bash
Executable File
30 lines
645 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e # fail if any command fails
|
|
cd `dirname $0`/../..
|
|
|
|
# bump versions: remove "-snapshot" suffix
|
|
sed -i -e 's/"version": "\(.*\)-snapshot"/"version": "\1"/' package.json
|
|
|
|
# Build
|
|
./jenkins_build.sh
|
|
|
|
VERSION=`cat build/version.txt`
|
|
|
|
# bump versions: increment version number and add "-snapshot" again
|
|
grunt bump:$BUMP_TYPE
|
|
sed -i -e 's/"version": "\(.*\)"/"version": "\1-snapshot"/' package.json
|
|
|
|
# commit, tag and push
|
|
git commit -m "chore(release): v%VERSION%"
|
|
git tag -m "v%VERSION%" v%VERSION%
|
|
# TODO git push
|
|
|
|
# Update code.angularjs.org
|
|
./scripts/code.angularjs.org/publish.sh
|
|
|
|
# Push to bower
|
|
./scripts/bower/publish.sh
|
|
|
|
|