[Feature] yarn npm publish
should print registry URL where it is publishing
#6191
Labels
enhancement
New feature or request
Describe the user story
I just spent another hour trying to publish my package with yarn 4 instead of npm, because I want
workspace:
cross-references inpackage.json
to be properly handled.With npm I had:
package.json
:.npmrc
:With Yarn, I had to figure out:
Does Yarn look into
.npmrc
? Apparently, the answer is No for Yarn Classic and No for Yarn Berry (or maybe they just don't handle these particular kinds of keys).How do I give the auth token then? Apparently, that's
yarn config set _authToken "$CI_JOB_TOKEN"
for Yarn classic (found on GitHub) andyarn config set 'npmRegistries["//private-registry"].npmAuthToken' "$CI_JOB_TOKEN"
for Yarn Berry (thanks for this useful example inyarn config set
docs, by the way!).Now I am still facing
YN0033: No authentication configured for request
when runningyarn npm publish
, and have no idea if I misconfigured the token or the registry URL. Andyarn npm publish
has no verbosity flags.If
yarn npm publish
printed the registry URL it is accessing, it would help.Describe the solution you'd like
A log line similar to
YN00xx: Publishing to npm.example.com
Describe the drawbacks of your solution
None?
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: