language: node_js cache: directories: - node_modules - .tmp notifications: email: false before_install: - git fetch --tags stages: - name: test # require the event type to not be a semantic release tag. if: NOT tag =~ ^v\d+\.\d+\.\d+$ jobs: include: - stage: test node_js: 'lts/carbon' script: - yarn lint - yarn test - yarn add --no-lockfile coveralls # Report coverage to coveralls.io - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js - rm -rf ./coverage - stage: test node_js: 'lts/carbon' script: - yarn lint - yarn test - stage: deploy if: branch = master # Semantic release will fail if it's not using node 8. node_js: 'lts/carbon' script: yarn semantic-release