language: node_js node_js: - "12" install: - npm install jobs: include: - stage: Build and test script: - npm test - stage: npm release script: npm run build deploy: provider: npm email: '$NPM_EMAIL' api_key: '$NPM_TOKEN' skip_cleanup: true on: tags: true branches: only: - master - /^v[0-9]+.*$/