add npm login

This commit is contained in:
Vincent BRIDIER 2023-05-26 10:40:48 +00:00
parent e1d8caf213
commit 113bceafc2
2 changed files with 4 additions and 0 deletions

View file

@ -2,6 +2,8 @@ eslint:
stage: lint
image: node:18
before_script:
- echo @ldc-web:registry=https://${CI_SERVER_HOST}/api/v4/packages/npm/ >> .npmrc
- echo //${CI_SERVER_HOST}/api/v4/packages/npm/:_authToken=${CI_JOB_TOKEN} >> .npmrc
- npm install
cache:
paths:

View file

@ -2,6 +2,8 @@ stylelint:
stage: lint
image: node:18
before_script:
- echo @ldc-web:registry=https://${CI_SERVER_HOST}/api/v4/packages/npm/ >> .npmrc
- echo //${CI_SERVER_HOST}/api/v4/packages/npm/:_authToken=${CI_JOB_TOKEN} >> .npmrc
- npm install
cache:
paths: