# External jobs include: - project: 'apolitical/templates/gitlab-pipelines' ref: master file: 'Node-Testing.gitlab-ci.yml' stages: - cache - test - publish publish-module: stage: publish image: node:10.19.0-alpine extends: - .use-cache only: - tags - /^v\d+\.\d+\.\d+$/ script: - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ~/.npmrc - yarn publish