Skip to content

Commit 86f65a6

Browse files
committed
fix(dry-run): look for the warning in stderr output rather than stdout
1 parent 4ab3e74 commit 86f65a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/verify-auth.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export default async function (npmrc, pkg, context) {
2727
// await whoamiResult;
2828
publishDryRunResult.stdout.pipe(stdout, { end: false });
2929
publishDryRunResult.stderr.pipe(stderr, { end: false });
30-
const {stdout: execaStdout} = await publishDryRunResult;
31-
execaStdout.forEach((line) => {
30+
const {stderr: execaStderr} = await publishDryRunResult;
31+
execaStderr.forEach((line) => {
3232
if (line.includes("warn This command requires you to be logged in to https://registry.npmjs.org/")) {
3333
throw new AggregateError([new Error('no auth context')]);
3434
}

0 commit comments

Comments
 (0)