language: node_js

node_js:
  - 10
  - 8

script:
  - npm run test:ci

branches:
  only:
    master

deploy:
  provider: npm
  email: "talk@selwyn.cc"
  api_key: $NPM_TOKEN
  on:
    branch: master
    tags: true

notifications:
  email: false

language: node_js

node_js:
  - 10
  - 8

script:
  - npm run test:ci

branches:
  only:
    - master
    - /v\d+\.\d+.+/

deploy:
  provider: npm
  email: "talk@selwyn.cc"
  api_key: $NPM_TOKEN
  on:
    branch: master
    tags: true

notifications:
  email: false

Deploy to npm on tagged commits
Deploy to npm on tagged commits