image: node:10 publish: stage: deploy only: refs: - master changes: - src/* - .gitlab-ci.yml script: - git config --global user.name "gitlab" - git config --global user.email "gitlab@coulee.tech" - git checkout master - npm ci - npm run build - npm version patch -m "Version %s skip ci" - git push origin master --tags - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc - npm publish