diff --git a/.changeset/skip-changeset-check-on-version-pr.md b/.changeset/skip-changeset-check-on-version-pr.md new file mode 100644 index 0000000..69475f4 --- /dev/null +++ b/.changeset/skip-changeset-check-on-version-pr.md @@ -0,0 +1,7 @@ +--- +--- + +Internal CI change (no version bump): skip the `changeset-check` job on the +changesets bot's "version packages" PR (`changeset-release/main`). That PR +consumes (deletes) changesets rather than adding them, so the check counted 0 +added/modified changeset files and always failed. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c7f145..52a9b03 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,10 @@ jobs: run: npm test changeset-check: - if: github.event_name == 'pull_request' + # Skip the changesets bot's "version packages" PR: it consumes (deletes) + # changesets rather than adding them, so it would always fail this check. + # The bot branches as changeset-release/, so match the prefix. + if: github.event_name == 'pull_request' && !startsWith(github.head_ref, 'changeset-release/') runs-on: ubuntu-latest steps: