Skip to content

Commit

Permalink
Merge pull request awslabs#179 from PaulMaddox/fix-semantic-release
Browse files Browse the repository at this point in the history
fix(CI): Update TravisCI configuration for semantic-release to use jobs
  • Loading branch information
PaulMaddox authored Mar 9, 2019
2 parents 17c776c + b14f4ba commit f51e5ae
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 f51e5ae

Please sign in to comment.