Skip to content

Commit a5ad13f

Browse files
committed
test
1 parent 9068988 commit a5ad13f

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

packages/cli/index.ts

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -518,12 +518,24 @@ const main = defineCommand({
518518
);
519519

520520
const debug = laterRes.debug;
521-
await core.summary
522-
.addDetails(
523-
"[INFO]",
524-
`\`\`\`json\n${JSON.stringify(debug, null, 2)}\n\`\`\``
525-
)
526-
.write();
521+
522+
// Test if debug data exists
523+
console.log("DEBUG DATA EXISTS:", !!debug);
524+
console.log("DEBUG DATA:", debug);
525+
526+
if (debug) {
527+
await core.summary
528+
.addDetails(
529+
"[INFO]",
530+
`\`\`\`json\n${JSON.stringify(debug, null, 2)}\n\`\`\``
531+
)
532+
.write();
533+
} else {
534+
await core.summary
535+
.addHeading("⚠️ No Debug Data")
536+
.addRaw("Backend did not return debug data")
537+
.write();
538+
}
527539

528540
console.warn("\n");
529541
console.warn("⚡️ Your npm packages are published.\n");

0 commit comments

Comments
 (0)