Skip to content

ci: run on push to main and bump actions off Node 20#8

Merged
blove merged 1 commit into
mainfrom
fix/ci-hardening
Apr 22, 2026
Merged

ci: run on push to main and bump actions off Node 20#8
blove merged 1 commit into
mainfrom
fix/ci-hardening

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented Apr 22, 2026

Summary

  • Add push: branches: [main] trigger — previously the workflow only ran on pull_request, so there was no CI signal on main itself and red PRs could merge silently. Running on push gives us a canonical green/red status on main and catches regressions from direct pushes.
  • Bump deprecated Node 20 actions:
    • actions/checkout@v4@v6
    • actions/setup-node@v4@v6
    • pnpm/action-setup@v4@v5

GitHub is removing Node 20 action runtimes on 2026-09-16. All three bumped majors now run on Node 24.

Compatibility note

actions/setup-node@v6 narrows automatic caching to npm-only. Our workflow uses cache: pnpm explicitly, which continues to work (confirmed in setup-node#1374). pnpm/action-setup@v5 picks pnpm version from the root package.json packageManager field, same as before.

Test plan

  • CI (test, typecheck, lint, format, build) passes on this PR with the new action versions
  • After merge, the push trigger fires on main and reports a status

Two small hardenings for the CI workflow:

1. Add "push: branches: [main]" trigger. Previously the workflow only
   ran on pull_request, so there was no CI signal on main itself — a
   PR could be merged with red checks and main would silently go red
   with no visible status. Running on push gives us a canonical green
   badge on main and surfaces regressions from direct pushes.

2. Bump deprecated Node 20 actions:
   - actions/checkout@v4 → @v6
   - actions/setup-node@v4 → @v6
   - pnpm/action-setup@v4 → @v5

   All three moved to Node 24 in these majors (GitHub deprecates Node
   20 action runtimes 2026-09-16). setup-node@v6 narrowed automatic
   caching to npm-only, but explicit "cache: pnpm" continues to work,
   which is what this workflow uses.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@blove blove merged commit 19ff9ac into main Apr 22, 2026
5 checks passed
@blove blove deleted the fix/ci-hardening branch April 22, 2026 03:02
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