File tree Expand file tree Collapse file tree 2 files changed +26
-5
lines changed Expand file tree Collapse file tree 2 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 3
3
APP_TAG=" v` node -p ' require("./package.json").version' ` "
4
4
GIT_COMMIT=` git rev-parse HEAD`
5
5
6
- # see http://docs.travis-ci.com/user/originment/custom/
7
- echo $0 : configuring git
8
- git config --global user.email
" [email protected] "
9
- git config --global user.name " Travis CI"
10
-
11
6
echo $0 : git reseting
12
7
git reset --hard HEAD
13
8
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ APP_TAG=" v` node -p ' require("./package.json").version' ` "
4
+ GIT_COMMIT=` git rev-parse HEAD`
5
+
6
+ # see http://docs.travis-ci.com/user/originment/custom/
7
+ echo $0 : configuring git
8
+ git config --global user.email
" [email protected] "
9
+ git config --global user.name " Travis CI"
10
+
11
+ echo $0 : git reseting
12
+ git reset --hard HEAD
13
+
14
+ echo $0 : tagging commit ${GIT_COMMIT} as ${APP_TAG}
15
+ git tag " ${APP_TAG} " " ${GIT_COMMIT} "
16
+
17
+ echo $0 : version bumping
18
+ <<< <<< < HEAD
19
+ npm version patch -m ' Version bump to %s'
20
+ =======
21
+ npm version patch
22
+ >>>>>>> 8735da7... Release v0.9.0
23
+
24
+ echo $0 : pushing tags and master
25
+ git push -q origin master --tags
26
+
You can’t perform that action at this time.
0 commit comments