Skip to content

Commit

Permalink
fix(publish): exit with non-zero code when publish tgz failed
Browse files Browse the repository at this point in the history
  • Loading branch information
await-ovo committed Nov 22, 2022
1 parent 2b709ce commit 5dd38c1
Show file tree
Hide file tree
Showing 2 changed files with 700 additions and 679 deletions.
5 changes: 4 additions & 1 deletion releasing/plugin-commands-publishing/src/publish.ts
Expand Up @@ -162,7 +162,10 @@ Do you want to continue?`,
return
}
if ((params.length > 0) && params[0].endsWith('.tgz')) {
runNpm(opts.npmPath, ['publish', ...params])
const { status } = runNpm(opts.npmPath, ['publish', ...params])
if (status !== null && status !== 0) {
return { exitCode: status }
}
return
}
const dirInParams = (params.length > 0) && params[0]
Expand Down

0 comments on commit 5dd38c1

Please sign in to comment.