Repository navigation
ci: run lint on Node 24 with current actions - #479
Merged
Merged
Conversation
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>
✅ Deploy Preview for tph ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every lint run printed:
That warning came from
actions/checkout@v2, whose own action runtime is node20. It was not caused by thenode-versioninput, which only sets the Node our scripts run on. Bumping the actions is what clears it.Changes
.github/workflows/lint.yml.nvmrc:20->24.Reading the version from
.nvmrcgives 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 thatsetup-nodeis current.Verification
npm install --legacy-peer-deps && npm run linton Node v24.18.0: exit 0, one pre-existingno-duplicate-importswarning insrc/components/Markdown/env.ts, no errors.The lint failure this branch originally hit is gone:
a0544c2onnextrestored 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
pushtrigger still readsbranches: [master]. This repo has nomaster, so push-triggered lint has never fired and only thepull_requesttrigger does anything. Separate PR.🤖 Generated with Claude Code