-
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
Not possible to publish without version bumping #5623
Comments
I'm actually a little confused. When I try running |
@peijiesim This is unrelated to this issue but yes, in non interactive its impossible to prompt for user input...as that would be "interactive". In this mode, its impossible to prompt a user to provide those details. You need to set the token in the .yarnrc file on the machine. If you run "yarn logon" just once on the machine and log in, that will be done for you. From that point on, you can use non-interactive as it will use previous logon details. |
I'll be working on this. |
@peijiesim Would be great if you could! |
Im closing this because it was fixed in #5748, thanks @peijiesim ! |
Do you want to request a feature or report a bug?
Feature (though this could be argued to be a bug).
What is the current behavior?
Currently, if you are in
--non-interactive
mode, you can specify a version using the--new-version [version]
flag. However, you can not leave this blank.What is the expected behavior?
I am in a CI scenario where I do not want any version bumping at all. The version currently in the
package.json
should be taken as good to go. I believe this is the default behaviour on NPM.Currently it is impossible to use Yarn to publish in this way. I would like to be able to not pass a
--disable-version-bump
flag to publish so that this behaviour can be achieved.The option has been discussed before in #3011 (with a hint by @bestander that we should have this) but the issue was ultimately closed with a PR solving a different problem.
Please mention your node.js, yarn and operating system version.
OSX 10.13
Node 8.9.0
Yarn 1.5.1
The text was updated successfully, but these errors were encountered: