diff --git a/.travis.yml b/.travis.yml index c80a6cad..ff531cc9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: node_js +os: linux node_js: - '14' @@ -33,19 +34,15 @@ script: # When the Cypress setuisbe verified, this command might be removed. # - yarn run snapshot - yarn run cy:run --record --key ${CYPRESS_RECORD_KEY} - # after all tests finish running we need - # to kill all background jobs (like "npm start &") - # this avoids flake in Travis jobs - - kill $(jobs -p) || true before_deploy: - echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc deploy: - if: branch = master AND tag IS present - provider: script - script: 'yarn run lerna:publish' - skip_cleanup: true - on: - tags: true - condition: $TRAVIS_COMMIT_MESSAGE =~ ^Publish + - provider: script + script: 'yarn run lerna:publish' + cleanup: false + skip_cleanup: true + on: + branch: master + condition: $TRAVIS_COMMIT_MESSAGE =~ ^Publish