I'm trying to use a npm package stored at Gitlab npm registry at a private project.
To publish my package i used:
My .gitlab-ci.yml:
image: node:12 stages: - deploy deploy: stage: deploy script: npm config set @{{my-org-name}}:registry https://gitlab.com/api/v4/projects/{{project-id}}/packages/npm/ npm config set "//gitlab.com/api/v4/projects/{{project-id}}/packages/npm/:_authToken" '{{my-auth-token}}' npm publishThen the publish config at package.json:
"publishConfig": { "access": "public", "@{{my-org-name}}:{{my-package-name}}": "https://gitlab.com/api/v4/projects/{{project-id}}/packages/npm/" }
This steps creates the package correctly, but when trying to install with npm i @{{my-org-name}}/{{my-package-name}} I step with 401 Unauthorized error.
I assume I'm missing an auth config somewhere, but can't figure out which or where!