blob: 88198d814e8f57e72b0285b46d02198279b2b17d (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 | #!/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
 |