ci: skip full CI suite on Version Packages PRs from changeset-release/main#268
Conversation
🦋 Changeset detectedLatest commit: 9af8e11 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@copilot will this skip both when new commits are pushed to a PR and also when the PR is first opened? |
Yes — both cases are covered. The With the condition: if: github.event_name != 'pull_request' || github.head_ref != 'changeset-release/main'When the head branch is |
Version Packages PRs (from
changeset-release/main) only contain version bumps and changelog updates — the code was already validated before merging tomain. Running the full CI suite on these PRs is wasteful, and theValidate changesetsstep actively fails because changesets files are consumed during versioning.Changes
ci.yml— Skipverifyjob when the PR head branch ischangeset-release/main:GitHub treats skipped jobs as satisfying required status checks, so no branch protection rule changes are needed.
release.yml— Skip theverify(CI checks) reuse call when pushing tochangeset-release/main, and updateversion_or_releaseto run whenverifyis either successful or skipped: