Skip to content

Commit 452523f

Browse files
alerizzoclaude
andcommitted
fix(ci): skip changeset-check on the version-packages PR
The changesets bot's "chore: version packages" PR (branch changeset-release/main) consumes changesets — it deletes the .md files and bumps versions, adding none. The changeset-check job counts only added/modified .changeset/*.md files (--diff-filter=AM), so it always reported 0 and failed on that PR (e.g. #22), even though the PR is correct by construction. Guard the job so it runs for normal PRs but skips the bot's version PR: `github.head_ref != 'changeset-release/main'`. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4fcf85d commit 452523f

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
---
3+
4+
Internal CI change (no version bump): skip the `changeset-check` job on the
5+
changesets bot's "version packages" PR (`changeset-release/main`). That PR
6+
consumes (deletes) changesets rather than adding them, so the check counted 0
7+
added/modified changeset files and always failed.

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939
run: npm test
4040

4141
changeset-check:
42-
if: github.event_name == 'pull_request'
42+
# Skip the changesets bot's "version packages" PR: it consumes (deletes)
43+
# changesets rather than adding them, so it would always fail this check.
44+
if: github.event_name == 'pull_request' && github.head_ref != 'changeset-release/main'
4345
runs-on: ubuntu-latest
4446

4547
steps:

0 commit comments

Comments
 (0)