Skip to content

Commit

Permalink
fix(release): 打印发包错误信息
Browse files Browse the repository at this point in the history
  • Loading branch information
chnliquan committed Sep 2, 2023
1 parent 2e762c9 commit 11f6c0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"--no-git-checks",
// "--tag",
// "next",
"patch"
"patch",
"--only-publish"
],
// "cwd": "${workspaceFolder}",
"cwd": "/Users/ender/workspace/technology/release-test",
Expand Down
6 changes: 6 additions & 0 deletions packages/release/src/core/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,12 @@ async function publish(opts: {
`${publishPkgNames[i]}@${version}`,
)} failed.`,
)

if (settledResult.reason?.message) {
console.log(`Error: ${settledResult.reason.message}`)
} else {
console.log(settledResult.reason)
}
}
}

Expand Down

0 comments on commit 11f6c0f

Please # to comment.