Skip to content

ci: stop running the verify suite on main pushes#48

Merged
tkowalczyk merged 1 commit into
mainfrom
ci/drop-duplicate-main-verify
Jul 9, 2026
Merged

ci: stop running the verify suite on main pushes#48
tkowalczyk merged 1 commit into
mainfrom
ci/drop-duplicate-main-verify

Conversation

@tkowalczyk

Copy link
Copy Markdown
Contributor

What

Remove push: [main] from ci.yml so the verify suite (types/test/lint/knip) no longer runs twice on every merge to main.

Why

Both CI and Release triggered on push: [main], so each merge ran the same four checks twice. Release already self-verifies before semantic-release + deploy (release.yml), and aborts the deploy if any check fails — so the CI run on main was pure duplication with no added safety.

After this change:

  • PRs → CI runs (unchanged; this is the branch-protection gate — Release never runs on pull_request).
  • main pushes → only Release runs, self-verifies, then releases + deploys.

No workflow_run coupling: Release stays self-contained, so a deploy never rides on an external green signal.

Trade-off

The main commit no longer gets a fast, independent CI check separate from Release (which is slower and serialized via concurrency: group: release). Thin edge case; acceptable given Release's own verification.

🤖 Generated with Claude Code

CI and Release both triggered on `push: [main]`, so every merge ran the
types/test/lint/knip suite twice. Release already self-verifies before
semantic-release + deploy (release.yml), so the CI run on main was pure
duplication — a failure there would block the deploy via Release anyway.

Keep CI on `pull_request` (the branch-protection gate; Release never runs
on PRs) and let Release own main-branch verification. No workflow_run
coupling — Release stays self-contained so a deploy never rides on an
external green signal.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tkowalczyk
tkowalczyk merged commit 9cbd915 into main Jul 9, 2026
1 check passed
@tkowalczyk
tkowalczyk deleted the ci/drop-duplicate-main-verify branch July 9, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant