Skip to content

Commit

Permalink
Fix publish not working with Yarn
Browse files Browse the repository at this point in the history
Fixes #698
  • Loading branch information
sindresorhus committed May 30, 2023
1 parent 12fce88 commit 3d448c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/npm/publish.js
Expand Up @@ -26,14 +26,13 @@ export const getPackagePublishArguments = options => {

const pkgPublish = (pkgManager, options) => execa(pkgManager, getPackagePublishArguments(options));

const publish = (context, pkgManager, task, options) => {
const publish = (context, pkgManager, task, options) =>
from(pkgPublish(pkgManager, options)).pipe(
catchError(error => handleNpmError(error, task, otp => {
context.otp = otp;

return pkgPublish(pkgManager, {...options, otp});
})),
);
};

export default publish;

0 comments on commit 3d448c2

Please sign in to comment.