Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit 13834c8

Browse files
committed
workflow: fix release script error handling
1 parent ae09d24 commit 13834c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ async function publishPackage(pkgName, version, additionalFlags) {
533533
)
534534
console.log(pico.green(`Successfully published ${pkgName}@${version}`))
535535
} catch (/** @type {any} */ e) {
536-
if (e.stderr.match(/previously published/)) {
536+
if (e.message?.match(/previously published/)) {
537537
console.log(pico.red(`Skipping already published: ${pkgName}`))
538538
} else {
539539
throw e

0 commit comments

Comments
 (0)