Skip to content

Commit

Permalink
ci: Don't run release stage on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Aug 9, 2018
1 parent c2f5d00 commit 780c220
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ after_success: cat ./coverage/lcov.info | coveralls

stages:
- Test
- Release
- name: Release
if: branch=master AND type = push

before_cache: rm -rf ./node_modules/.cache
cache:
Expand All @@ -29,8 +30,7 @@ cache:

jobs:
include:
- if: branch=master
stage: Release
- stage: Release
node_js: stable
before_install: if [[ $GH_TOKEN ]]; then ./prepare-gpg-key.sh; fi;
before_script: npm run build
Expand Down

0 comments on commit 780c220

Please sign in to comment.