You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The last command yarn changeset publish fail with the following error:
🦋 error Received an unknown error code: E401 for npm info "@xxx-xxx/test-publish"
🦋 error Unable to authenticate, need: Basic realm="GitHub Package Registry"
error Command failed with exit code 1.
When I use yarn npm publish instead I can publish the package,
Did you have any idea how I can fix the issue or understand why we have it
Thanks for the report - there are a couple of problems with alternative registries. I'm listing currently in the process of looking through issues to gather them all and to prepare a fixing plan.
@JulienKode it seems that we should switch to a yarn equivalent of npm info when using Yarn Berry. I'm reworking parts of the publish process in Changesets right now to make it work better with Berry but a fix for this one is not included in my work yet. I would first like to land a fix for a more standard publish process and then get back to this issue here and fix it.
Activity
[-]Configuration with a private registery [/-][+]Error with GitHub registery[/+]erdoganoksuz commentedon Oct 12, 2021
Setup node.js step create a npm file for you for this reason you should add all your variable to this step like following one.
for more help; https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry
Andarist commentedon Oct 12, 2021
Thanks for the report - there are a couple of problems with alternative registries. I'm listing currently in the process of looking through issues to gather them all and to prepare a fixing plan.
JulienKode commentedon Oct 12, 2021
Thanks for your reply @erdoganoksuz , I'll will check, but on the other CI system we do not use .npmrc at all
Thanks @Andarist
Let me know if you need any other info or help
Andarist commentedon Nov 20, 2021
@JulienKode it seems that we should switch to a yarn equivalent of
npm infowhen using Yarn Berry. I'm reworking parts of the publish process in Changesets right now to make it work better with Berry but a fix for this one is not included in my work yet. I would first like to land a fix for a more standard publish process and then get back to this issue here and fix it.MikelArnaiz commentedon Jun 6, 2024
Related; #965
bluwy commentedon Aug 11, 2026
fixed in #2097