Skip to content

ci: bump actions to Node 24 (fix Node 20 deprecation) - #40

Merged
mcollina merged 1 commit into
mainfrom
fix/update-gh-actions-to-node-24
Sep 15, 2026
Merged

mcollina merged 1 commit into
mainfrom
fix/update-gh-actions-to-node-24

Conversation

@mcollina

Copy link
Copy Markdown
Member

Summary

actions/checkout@v4, actions/setup-node@v4 and pnpm/action-setup@v4 run on the deprecated Node.js 20 runtime, which produces this warning on every run:

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, pnpm/action-setup@v4.

Changes

Bumped all three actions to @v6 (which declare runs: using: node24) in:

  • .github/workflows/release.yml (the release-npm job that surfaced the warning)
  • .github/workflows/ci.yml (same three actions, would show the identical warning on every push/PR)

The release workflow logic is otherwise untouched — OIDC publishing (id-token: write + --provenance, no NPM_TOKEN) already works.

Notes

  • setup-node@v6 keeps cache: pnpm working since pnpm/action-setup@v6 runs first in both workflows; the v6 caching behavior change only affects automatic npm caching, which we don't rely on.
  • packageManager: pnpm@11.27.0 is set in the root package.json, so the pnpm setup step continues to resolve the version automatically.

actions/checkout, actions/setup-node and pnpm/action-setup v4 run on the
deprecated Node.js 20 runtime. Bump them to v6 (node24) in both the
release and CI workflows to silence the deprecation warning.

Signed-off-by: Matteo Collina <hello@matteocollina.com>
@mcollina
mcollina merged commit 18c143b into main Sep 15, 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