Skip to content

Commit ce97caa

Browse files
authored
chore(ci): 部署失败,不对github产生副作用 (#92)
1 parent 852ad1f commit ce97caa

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

templates/.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ install:
1111
- yarn test
1212
script:
1313
- ./build.sh
14-
after_success:
15-
- GREN_GITHUB_TOKEN=$GITHUB_TOKEN yarn release
1614
after_script:
1715
- ./notify.sh
1816
cache: yarn

templates/build.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@
22
yarn stdver
33

44
yarn build
5-
6-
git remote add github https://$GITHUB_TOKEN@github.com/{{ownerName}}/{{componentName}}.git > /dev/null 2>&1
7-
git push github HEAD:master --follow-tags
8-

templates/notify.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ then
55
exit 1
66
fi
77

8+
git remote add github https://$GITHUB_TOKEN@github.com/{{ownerName}}/{{componentName}}.git > /dev/null 2>&1
9+
git push github HEAD:master --follow-tags
10+
11+
GREN_GITHUB_TOKEN=$GITHUB_TOKEN yarn release
12+
813
url=https://api.github.com/repos/{{ownerName}}/{{componentName}}/releases/latest
914
resp_tmp_file=resp.tmp
1015

0 commit comments

Comments
 (0)