File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ . ./pre-check.sh
4
+
3
5
tsc
4
6
npm pack
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ branch=$( git rev-parse --abbrev-ref HEAD)
4
+
5
+ if [[ " ${branch} " != " master" ]]; then
6
+ echo " This script can only be run on the master branch. Current branch is ${branch} "
7
+ exit 1
8
+ fi
9
+
10
+ if ! git diff --quiet; then
11
+ echo " This script must only run on a clean master branch."
12
+ echo
13
+ git status
14
+ exit 1
15
+ fi
16
+
17
+ untracked=$( git ls-files --exclude-standard --others)
18
+
19
+ if [[ " ${untracked} " != " " ]]; then
20
+ echo " This script requires no untracked files."
21
+ echo
22
+ git status
23
+ exit 1
24
+ fi
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ if [[ "${1}x" == "x" ]]; then
4
4
exit 1
5
5
fi
6
6
7
+ . ./pre-check.sh
8
+
7
9
git tag ${1}
8
10
git push upstream ${tag}
9
11
You can’t perform that action at this time.
0 commit comments