Skip to content

Commit 1548ba2

Browse files
committed
workflow: fix error catching
1 parent 532c882 commit 1548ba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/prepublish.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ await $`git add -A .`
1212
try {
1313
await $`git commit -m "version ${version} snapshot"`
1414
} catch (e) {
15-
if (!e.message.includes('nothing to commit')) {
15+
if (!e.stdout.includes('nothing to commit')) {
1616
throw e
1717
}
1818
}

0 commit comments

Comments
 (0)