add npm login
This commit is contained in:
parent
e1d8caf213
commit
113bceafc2
2 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue