yarnpkg/yarn

yarn publish changes version with wrong password

Open

#1,675 opened on 2016年11月4日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)JavaScript (41,514 stars) (2,731 forks)batch import
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

コントリビューターガイド