Skip to content

Commit

Permalink
fix(CI): Update TravisCI configuration for semantic-release to use jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulMaddox committed Mar 9, 2019
1 parent 7ae2a32 commit f6c2fee
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ after_success:
- test "${TRAVIS_EVENT_TYPE}" = "cron" && ./generate/create-pull-request.sh
# - ./generate/create-pull-request.sh

deploy:
provider: script
skip_cleanup: true
script:
# Use nvm to install and use the Node LTS version (nvm is installed on all Travis images)
- nvm install lts/*

# Run semantic-release only on one job, after all other are successful
- npx travis-deploy-once "npx semantic-release"
jobs:
include:
# Define the release stage that runs semantic-release
- stage: release
deploy:
provider: script
skip_cleanup: true
script:
# Use nvm to install and use the Node LTS version (nvm is installed on all Travis images)
- nvm install lts/*
- npx semantic-release

0 comments on commit f6c2fee

Please sign in to comment.