cat-buggood first issuehelp wantedtriaged
描述
Do you want to request a feature or report a bug? Bug
What is the current behavior? Yarn will refuse to publish a package if the version doesn't change:
error New version is the same as the current version.
It also bumps the version before logging in, so if auth fails, you'll be in an error state.
If the current behavior is a bug, please provide the steps to reproduce.
yarn publish
// enter new version
// enter wrong npm password
error Incorrect username or password.
yarn publish
error New version is the same as the current version.
What is the expected behavior?
yarn publish should only error if the version currently posted on npmjs.org is the same as the version in package.json
Please mention your node.js, yarn and operating system version. yarn publish v0.15.1 node v6.2.1 macOS 10.11.6