Skip to content

Commit

Permalink
ci: only trigger release stage on push, keep verifying on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Andrade committed Jun 18, 2020
1 parent 2ffccb8 commit ba8ecd1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@ branches:
- /v\d+\.\d+\.\d+-docs$/
jobs:
include:
- stage: dependency-check
name: "Dependency check"
if: type = pull_request
script: yarn run verify:ci
- stage: release
name: "Release"
if: type = push
script: yarn run verify:ci
before_deploy:
- "git remote rm origin"
Expand All @@ -35,7 +40,7 @@ jobs:
- "yarn config set _authToken ${NPM_AUTH_TOKEN}"
deploy:
- provider: script
script: "yarn run prerelease:ci alpha-$TRAVIS_BRANCH && yarn run lerna:publish:ci"
script: "yarn run prerelease:ci $TRAVIS_BRANCH && yarn run lerna:publish:ci"
skip_cleanup: true
on:
all_branches: true
Expand Down

0 comments on commit ba8ecd1

Please sign in to comment.