image: node:8.11.3-stretch publish: only: - tags - /^v.*$/ script: - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc - npm publish when: manual