From f47c3fbf2e7f4f348b67df4997a83cdf2124e0e1 Mon Sep 17 00:00:00 2001 From: Cayman Date: Fri, 6 Oct 2023 10:49:46 -0400 Subject: [PATCH] chore: apply changes to monorepo-only releaseRc --- src/release-rc.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/release-rc.js b/src/release-rc.js index d678e165e..acd66ffe1 100644 --- a/src/release-rc.js +++ b/src/release-rc.js @@ -78,12 +78,11 @@ async function releaseMonorepoRcs (commit, ctx) { console.info(`npm publish --tag ${ctx.tag} --dry-run ${!process.env.CI}`) try { - await execa('npm', ['publish', '--tag', ctx.tag, '--dry-run', `${!process.env.CI}`], { - stdout: 'inherit', - stderr: 'inherit', - cwd: project.dir, - all: true + const subprocess = execa('npm', ['publish', '--tag', ctx.tag, '--dry-run', `${!process.env.CI}`], { + cwd: project.dir }) + pipeOutput(subprocess, project.manifest.name, ctx.noPrefix) + await subprocess } catch (/** @type {any} */ err) { if (err.all?.includes('You cannot publish over the previously published versions')) { // this appears to be a bug in npm, sometimes you publish successfully but it also