Skip to content

Commit c713090

Browse files
update checkChangesetPresence
1 parent a62e5f7 commit c713090

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/scripts/validate-changesets.mts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ async function checkChangesetPresence() {
4040

4141
const result = await $`yarn changeset status --since=origin/main 2>&1`.nothrow();
4242

43+
if (result.exitCode !== 0 && result.stdout.includes('no changesets were found')) {
44+
log.warn('⚠️ No changesets found — skipping (only private packages changed?)');
45+
return true;
46+
}
47+
4348
if (result.exitCode !== 0) {
4449
log.error('❌ Changeset validation failed\n');
4550
echo(result.stdout);

0 commit comments

Comments
 (0)