Skip to content

ci: move checkout and setup-node to v7, pinned to commit SHAs - #6

Merged
a-tokyo merged 2 commits into
mainfrom
ci/bump-actions-node24
Oct 19, 2026
Merged

a-tokyo merged 2 commits into
mainfrom
ci/bump-actions-node24

Conversation

@a-tokyo

@a-tokyo a-tokyo commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Why

Every run warns that actions/checkout@v4 and actions/setup-node@v4 target Node 20, which GitHub deprecated.

What

  • actions/checkout v4 → v7 and actions/setup-node v4 → v7 in ci.yml and release.yml.

  • The release publish job now sets package-manager-cache: false and no longer uses cache: npm. setup-node's Trusted Publisher (OIDC) docs recommend this: a poisoned cache could reach the OIDC token. CI keeps cache: npm.

  • Actions are pinned to full commit SHAs (checkout v7.0.1 3d3c42e, setup-node v7.1.0 949feb2), with the version as a comment. Tags can be moved, SHAs cannot.

  • New .github/dependabot.yml (github-actions, weekly) keeps the pins and their comments current.

Breaking changes checked

  • checkout v5–v7: Node 24 runtime, needs runner ≥ 2.327.1 (GitHub-hosted runners have it).
  • setup-node v5: automatic caching when packageManager is set. This repo doesn't set it.
  • setup-node v6: automatic caching is limited to npm.
  • setup-node v7: ESM migration, removes the dummy NODE_AUTH_TOKEN export. OIDC publishing doesn't use that token.

Testing

  • CI on this PR runs the new versions on Node 22 and 24.
  • Merging edits release.yml, so Release runs on main. v0.1.6 is already tagged, so check should skip publish and release.
  • The real publish path (OIDC without the dummy token) runs on the next version bump.

🤖 Generated with Claude Code

The v4 actions run on Node 20, which GitHub deprecated. v7 runs on
Node 24. The publish job drops the npm dependency cache, as setup-node
recommends for OIDC publishing: a poisoned cache could reach the token.
CI keeps its cache.
@a-tokyo a-tokyo self-assigned this Oct 19, 2026
Tags can be moved; a commit SHA cannot. Each pin keeps its version as a
comment, and Dependabot (github-actions, weekly) bumps both together.
@a-tokyo a-tokyo changed the title ci: move checkout and setup-node to v7 (Node 24 runtime) ci: move checkout and setup-node to v7, pinned to commit SHAs Oct 19, 2026
@a-tokyo
a-tokyo merged commit f766db6 into main Oct 19, 2026
2 checks passed
@a-tokyo
a-tokyo deleted the ci/bump-actions-node24 branch October 19, 2026 16:22
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