yarnpkg/yarn

yarn publish changes version with wrong password

Open

#1675 aperta il 4 nov 2016

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (2731 fork)batch import
cat-buggood first issuehelp wantedtriaged

Metriche repository

Star
 (41.514 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor