Skip to content

Commit

Permalink
chore(travis): deploy after release to have correct version number
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jan 18, 2018
1 parent 81b5ce4 commit 27d6fce
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@ branches:
- master
- /^greenkeeper.*$/

stages:
- test
- name: release
if: branch = master AND type IN (push)

jobs:
include:
- script: npm run test
- stage: test
script: npm run test
- stage: release
node_js: lts/*
script:
- npm run semantic-release
- stage: deploy
if: branch = master
script: skip
script: npm run semantic-release
deploy:
script: scripts/deploy.sh
provider: script
Expand Down

0 comments on commit 27d6fce

Please sign in to comment.