]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: fix release script error handling
authorEvan You <evan@vuejs.org>
Tue, 6 Aug 2024 13:14:18 +0000 (21:14 +0800)
committerEvan You <evan@vuejs.org>
Tue, 6 Aug 2024 13:14:32 +0000 (21:14 +0800)
scripts/release.js

index 9df761f2e38f67125f025245becc9d92845d2eca..a85ee866ec37b79dbefd3f4fd6ac396c31932cf2 100644 (file)
@@ -533,7 +533,7 @@ async function publishPackage(pkgName, version, additionalFlags) {
     )
     console.log(pico.green(`Successfully published ${pkgName}@${version}`))
   } catch (/** @type {any} */ e) {
-    if (e.stderr.match(/previously published/)) {
+    if (e.message?.match(/previously published/)) {
       console.log(pico.red(`Skipping already published: ${pkgName}`))
     } else {
       throw e