Commit 69ead638 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

ci: ajoute un job npm:publish pour les tags.

parent 89e699d9
...@@ -52,10 +52,11 @@ test:compile-generated: ...@@ -52,10 +52,11 @@ test:compile-generated:
npm:publish: npm:publish:
extends: .nodejs extends: .nodejs
stage: publish stage: publish
only: rules:
refs: - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"'
- tags
before_script: before_script:
- npm install -g npm
- npm config set '//registry.npmjs.org/:_authToken' "$NPM_AUTH_TOKEN" - npm config set '//registry.npmjs.org/:_authToken' "$NPM_AUTH_TOKEN"
script: script:
- npm version --no-git-tag-version "$CI_COMMIT_TAG"
- npm publish --access=public . - npm publish --access=public .
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment