Skip to content

Commit

Permalink
chore: apply changes to monorepo-only releaseRc
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain committed Oct 6, 2023
1 parent 4c9ccd6 commit f47c3fb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/release-rc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f47c3fb

Please sign in to comment.