Skip to content

Commit 0877f11

Browse files
committed
ci: return early if no changes
Signed-off-by: Logan McAnsh <logan@mcan.sh>
1 parent 802e900 commit 0877f11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

__scripts/test.mjs

+4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ const list = new Intl.ListFormat("en", { style: "long", type: "conjunction" });
6060

6161
console.log(`Testing changed examples: ${list.format(examples)}`);
6262

63+
if (examples.length === 0) {
64+
return;
65+
}
66+
6367
for (const example of examples) {
6468
const pkgJson = await PackageJson.load(example);
6569

0 commit comments

Comments
 (0)