language: node_js node_js: - node - lts/* - 10 - 8 cache: npm jobs: include: - stage: lint script: npm run lint - stage: coverage node_js: node install: npm install -g codecov script: - npm install - ./node_modules/.bin/nyc --reporter=text --reporter=lcovonly npm test - codecov - stage: npm release node_js: node script: - npm run build:clean - npm run build:npm - npm init --yes - npm publish --dry-run deploy: edge: true provider: npm email: "$NPM_EMAIL" api_key: "$NPM_TOKEN" on: tags: true