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
No related merge requests found
Showing with 4 additions and 3 deletions
+4 -3
......@@ -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 .
Supports Markdown
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