-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yarn publish command not reading password from .yarnrc #3932
Comments
Looking at the code, it seems like yarn/src/registries/npm-registry.js Lines 224 to 243 in 3bfa1e3
You could try an auth token in |
Either password or _password didn't work. How do I get the authentication token, can you please provide me some steps. I tried the command: |
Try
Update your CI environment to write this to |
I have same problem, after add
|
@gutenye I ran into this problem as well. Because of the underscore it needs to be defined with surrounding quotes like that:
Or you can set it via |
I have the same problem as well ( After doing some debugging it looks like Nevertheless at the end of This has been reproduced with latest yarn v1.6.0. |
@akloeber Thanks for the ""(double quotes) solution. I was breaking my head for like 8 hours. Adding the double quotes around _auth fixed it :) |
Do you want to request a feature or report a bug?
Can yarn publish step read password from .yarnrc file? I would like to publish my package as part of my continuous integration process
What is the current behavior?
yarn doesn't read password from .yarnrc file, but it does reads username. Is there any other alternative since the continuous integration process cannot work with interaction.
What is the expected behavior?
Read credentials from yarnrc file
Please mention your node.js, yarn and operating system version.
yarn 0.27.2
node 6.9.4
mac 10.11.3
The text was updated successfully, but these errors were encountered: