sudo: false language: node_js cache: directories: - node_modules node_js: - "8" - "node" install: - npm install - npm update - npm prune script: - commitlint-travis - npm run lint - npm run build - npm run tap after_script: - | # RELEASE_BRANCHES and NPM_TOKEN defined in Travis settings panel declare exitCode $(npm bin)/travis-after-all exitCode=$? if [[ # Execute after all jobs finish successfully $exitCode = 0 && # Only release on release branches $RELEASE_BRANCHES =~ $TRAVIS_BRANCH && # Don't release on PR builds $TRAVIS_PULL_REQUEST = "false" ]]; then npm run semantic-release fi