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:
npm:publish:
extends: .nodejs
stage: publish
only:
refs:
- tags
rules:
- if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"'
before_script:
- npm install -g npm
- npm config set '//registry.npmjs.org/:_authToken' "$NPM_AUTH_TOKEN"
script:
- npm version --no-git-tag-version "$CI_COMMIT_TAG"
- 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