Skip to content

Commit dc0238d

Browse files
committed
Add error status to publish command when validation fails
1 parent 7790b52 commit dc0238d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/publish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export const publish = async (argv: string[]) => {
5959
console.error("Validation error:");
6060
invalidItemMessages.forEach((msg) => {
6161
console.error(msg.name, msg.errors);
62-
targetItems = targetItems.filter((item) => item.name !== msg.name);
6362
});
63+
process.exit(1);
6464
}
6565

6666
if (targetItems.length === 0) {

0 commit comments

Comments
 (0)