-
Notifications
You must be signed in to change notification settings - Fork 337
Open
Description
I've encounter problem when using changesets/action when I'm using the private registry that is not npm.
Upon looking into it the problem seems to coming from the bellow line where it only check for npm registry name.
const authLine = userNpmrcContent.split("\n").find((line) => {
// check based on https://github.com/npm/cli/blob/8f8f71e4dd5ee66b3b17888faad5a7bf6c657eed/test/lib/adduser.js#L103-L105
return /^\s*\/\/registry\.npmjs\.org\/:[_-]authToken=/i.test(line);
});
However, beside npm registry, we also have github registry and custom domain gitlab registry.
// npm
//registry.npmjs.org/:_authToken
// github
//npm.pkg.github.com/:_authToken=TOKEN
// custom domain gitlab registry
//code.org.com/packages/npm/:_authToken=
Hence I'm making the change here to address for this problem.
#362
Thank you the team for your work on maintaining this tool!
dikaso, flaxel, RodrigoHamuy, HokkanenTeemu, orept and 1 more
Metadata
Metadata
Assignees
Labels
No labels