Skip to content

ci: run lint on Node 24 with current actions - #479

Merged
veksen merged 1 commit into
nextfrom
ci-node-24-upgrade
Dec 3, 2026
Merged

veksen merged 1 commit into
nextfrom
ci-node-24-upgrade

Conversation

@veksen

@veksen veksen commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

Every lint run printed:

Node 20 is being deprecated. This workflow is running with Node 24 by default. If you need to temporarily use Node 20, you can set the ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true environment variable

That warning came from actions/checkout@v2, whose own action runtime is node20. It was not caused by the node-version input, which only sets the Node our scripts run on. Bumping the actions is what clears it.

Changes

.github/workflows/lint.yml

- uses: actions/checkout@v5      # was @v2
- uses: actions/setup-node@v5    # was @v4
  with:
    node-version-file: ".nvmrc"  # was node-version: "20.x"
    cache: "npm"

.nvmrc: 20 -> 24.

Reading the version from .nvmrc gives CI and local one source of truth. Node 24 satisfies Astro's engine range (18.20.8 || ^20.3.0 || >=22.0.0). cache: "npm" is available now that setup-node is current.

Verification

npm install --legacy-peer-deps && npm run lint on Node v24.18.0: exit 0, one pre-existing no-duplicate-imports warning in src/components/Markdown/env.ts, no errors.

The lint failure this branch originally hit is gone: a0544c2 on next restored the ESLint plugins and renamed the config to .eslintrc.cjs, so there is nothing left to do here beyond the Node bump.

Not in this PR

The push trigger still reads branches: [master]. This repo has no master, so push-triggered lint has never fired and only the pull_request trigger does anything. Separate PR.

🤖 Generated with Claude Code

GitHub deprecated the node20 action runtime that actions/checkout@v2
runs on. That runtime, not the `node-version` input, is what emitted the
deprecation warning on every lint run.

- checkout@v2 -> @v5 and setup-node@v4 -> @v5, which clears the warning.
- Read the version from .nvmrc instead of hardcoding "20.x", so CI and
  local use one source of truth. Bump .nvmrc to 24, which satisfies
  Astro's engine range (18.20.8 || ^20.3.0 || >=22.0.0).
- Enable setup-node's npm cache, available now that the action is
  current.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for tph ready!

Name Link
🔨 Latest commit fa1a076
🔍 Latest deploy log https://app.netlify.com/projects/tph/deploys/6ace48bbb9c24b6218f37187
😎 Deploy Preview https://deploy-preview-479--tph.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@veksen
veksen merged commit a759da9 into next Dec 3, 2026
5 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