diff --git a/.travis.yml b/.travis.yml index 4b36065141..26e908857c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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