image: node:8 before_script: - npm install # Publish tagged versions to npm publish: stage: build script: - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc - npm publish --access public only: - master