language: node_js
cache:
  directories:
    - ~/.npm
notifications:
  email: false
jobs:
  include:
    - script: npm run lint
    - script: npm run test
    - stage: semantic release
      script: npm run semantic-release
stages:
  - name: test
  - name: semantic release
    if: branch = master AND type = push
branches:
  except:
    # ignore version tag branches from semantic release
    - /^v\d+\.\d+\.\d+$/
