Update .gitlab-ci.yml file

This commit is contained in:
Marie 2024-02-02 18:59:02 +00:00
parent dd0a082fba
commit 87b0c5fb1c

View file

@ -14,9 +14,11 @@ test:
publish-npm:
stage: deploy
needs: ['test']
changes:
paths:
- package.json
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes:
paths:
- package.json
script:
- echo "@sharkey:registry=https://${CI_SERVER_HOST}/api/v4/groups/2/packages/npm/" > .npmrc
- echo "//${CI_SERVER_HOST}/api/v4/groups/2/packages/npm/:_authToken=${NPM_TOKEN}" >> .npmrc