This repository was archived by the owner on Sep 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,12 @@ script:
17
17
before_deploy :
18
18
- echo "NPM_TOKEN=${NPM_TOKEN}" >> .env
19
19
- echo "GH_TOKEN=${GH_TOKEN}" >> .env
20
- - git checkout master && git pull origin
20
+ - git config --local user.name "${GIT_NAME}"
21
+ - git config --local user.email "${GIT_EMAIL}"
22
+ - git remote rm origin
23
+ - git remote add origin https://${GH_USER}:${GH_TOKEN}@github.com/relay-tools/relay-compiler-language-typescript.git
24
+ - git pull origin master
25
+ - git branch --set-upstream-to origin/master
21
26
- yarn build
22
27
deploy :
23
28
skip_cleanup : true
Original file line number Diff line number Diff line change 1
1
if [ ! -z " $TRAVIS_BRANCH " ] && [ " $TRAVIS_BRANCH " == " master" ]; then
2
- git config --local user.name " ${GIT_NAME} "
3
- git config --local user.email " ${GIT_EMAIL} "
4
- git remote rm origin
5
- git remote add origin https://${GH_USER} :${GH_TOKEN} @github.com/relay-tools/relay-compiler-language-typescript.git
6
- git branch --set-upstream-to origin/master
7
-
8
2
npx auto shipit $AUTO_OPTS
9
3
else
10
4
echo " Not on master, skipping deploy"
You can’t perform that action at this time.
0 commit comments