Skip to content

Update checkout and setup-node to v7 for Node 24 - #61

Merged
alfg merged 1 commit into
masterfrom
bump-actions-node24
Sep 11, 2026
Merged

alfg merged 1 commit into
masterfrom
bump-actions-node24

Conversation

@alfg

@alfg alfg commented Sep 11, 2026

Copy link
Copy Markdown
Owner

Summary

Every CI run warns: Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4. This bumps both to v7, which target Node 24, in node.js.yml (CI) and github-pages.yml (deploy).

Breaking changes checked (v5–v7 release notes):

  • checkout v5 needs runner 2.327.1 or later. GitHub-hosted runners already have it.
  • setup-node v5/v6 turn on caching automatically when package.json has a packageManager field. There isn't one, and both workflows set cache: 'npm' explicitly, so caching is unchanged.
  • setup-node v7 removes a placeholder NODE_AUTH_TOKEN. That only matters for publishing to npm, which neither workflow does.

Testing

This PR's CI run uses the new versions. github-pages.yml only runs on pushes to master, so the deploy workflow will first run with v7 after merge.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FJAB1xUz2Ks7btZ9WRyMgh

GitHub has deprecated Node 20 for actions and warns on every run that
actions/checkout@v4 and actions/setup-node@v4 are being forced onto Node
24. v7 of both target Node 24.

Both workflows already set cache: 'npm' and package.json has no
packageManager field, so setup-node's caching changes since v5 don't apply.
@alfg
alfg merged commit 2d9e350 into master Sep 11, 2026
2 checks passed
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