fix(ci): replace broken token with CI_JOB_TOKEN

This commit is contained in:
Marie 2024-04-03 09:19:36 +00:00
parent 64b3b75f74
commit f2f2b82c8c

View file

@ -21,7 +21,7 @@ publish-npm:
- package.json
script:
- echo "@transfem-org:registry=https://${CI_SERVER_HOST}/api/v4/projects/2/packages/npm/" > .npmrc
- echo "//${CI_SERVER_HOST}/api/v4/projects/2/packages/npm/:_authToken=${NPM_TOKEN}" >> .npmrc
- echo "//${CI_SERVER_HOST}/api/v4/projects/2/packages/npm/:_authToken=${CI_JOB_TOKEN}" >> .npmrc
- npm i
- npm run build
- npm publish