Skip to content

Commit 28005a0

Browse files
authored
checkout to master before release (#26)
* checkout to master before release * checkout to master before release * checkout to master before release * another attempt * another attempt
1 parent 0846c18 commit 28005a0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,14 @@ script:
2929
after_success:
3030
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
3131

32+
before_deploy:
33+
- if [ "$BRANCH" == "master" ]; then
34+
git checkout master;
35+
fi;
36+
3237
deploy:
3338
- provider: script
34-
script: if [ "$NPM_TOKEN" != "false" ]; then yarn release; fi
39+
script: if [ "$GH_TOKEN" != "false" ]; then npx auto shipit; fi;
3540
skip-cleanup: true
3641
on:
3742
all_branches: true

0 commit comments

Comments
 (0)