Commit 7d4ea369 authored by Suzanne Selhorn's avatar Suzanne Selhorn

Merge branch 'brendan-master-patch-52671' into 'master'

Make .npmrc usage more clear

See merge request gitlab-org/gitlab!34765
parents 283f00ab 98777890
...@@ -306,10 +306,12 @@ stages: ...@@ -306,10 +306,12 @@ stages:
deploy: deploy:
stage: deploy stage: deploy
script: script:
- echo '//gitlab.com/api/v4/projects/<your_project_id>/packages/npm/:_authToken=${CI_JOB_TOKEN}'>.npmrc - echo '//gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}'>.npmrc
- npm publish - npm publish
``` ```
Learn more about [using `CI_JOB_TOKEN` to authenticate to the GitLab NPM registry](#authenticating-with-a-ci-job-token).
## Troubleshooting ## Troubleshooting
### Error running yarn with NPM registry ### Error running yarn with NPM registry
......
Markdown is supported
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