How do use the same authentication for multiple registries in the same domain?

GitLab NPM Registry requires you to specify a project ID in the registry URL under your publishConfig in package.json.

To authenticate, the documentation instructs you to add the following to your .npmrc

//gitlab.com/api/v4/projects/<your_project_id>/packages/npm/:_authToken=<your_token>

This is fine for one project but what if I have dozens of packages I want to publish? Can I associate an authToken with an entire domain or base url? I tried the following without any luck:

//gitlab.com/api/v4/projects/:_authToken=<your_token>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.