ci(screenshots): bump Actions to Node 24 majors#108
Merged
Conversation
Bump checkout v4->v6 and setup-node v4->v6 (both latest majors, Node 24-based) so the Screenshots workflow keeps working after Node 20 is removed from runners on 2026-09-16. Mirrors the deploy.yml bump in PR #107; this is the follow-up that PR flagged. node-version: 20 is left as-is: it is the project runtime setup-node installs for the screenshots scripts (a separate concern from the action runtime), and setup-node downloads it regardless of runner preinstalls. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
evinaeva
added a commit
that referenced
this pull request
Jun 16, 2026
ci(screenshots): bump Actions to Node 24 majors
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.
Why
GitHub removes Node 20 from Actions runners on 2026-09-16 (force-migration of Node 20 actions to Node 24 began 2026-06-16). The
Screenshotsworkflow still pinnedactions/checkout@v4+actions/setup-node@v4(both Node 20 actions) — the same exposure PR #107 fixed fordeploy.yml, and which that PR explicitly flagged as a follow-up. This is that follow-up. Per the Node 20 deprecation changelog.What changed —
.github/workflows/screenshots.ymlEach action bumped to its latest major (both Node 24-based; latest tags verified via the GitHub API —
checkoutv6.0.3,setup-nodev6.4.0):actions/checkoutv4v6actions/setup-nodev4v6This workflow does not use the Pages actions, so the
upload-pages-artifactdotfile breaking change handled in PR #107 does not apply here.Breaking changes reviewed — none affect this workflow
checkoutv6 — "persist creds to a separate file" (#2286). This is the one to watch, because unlikedeploy.ymlthis workflow runs a baregit push origin HEAD:...in a later step that relies on the credentialscheckoutpersists. v6 no longer writes the token'shttp.<origin>/.extraheaderinline into.git/config; it writes it to a creds file inRUNNER_TEMPand adds anincludeIf.gitdir:<gitDir>.pathpointer in the local.git/config. A subsequentgit pushfrom the workspace resolves the same gitdir, includes the creds file, and authenticates exactly as before — the change is transparent to consumers. v6.0.0/v6.0.1 additionally addedincludeIfentries for worktrees, which is relevant sincescripts/screenshots.mjsmakes per-version worktrees (though those are local/read-only and don't need creds).setup-nodev5 auto-cache (#1348), narrowed to npm in v6 (#1374). Auto-caching only triggers whenpackage.jsonhas apackageManagerfield — this repo has none, so behavior is identical to v4 (no caching, no "lock file not found" error). Apackage-lock.jsonexists as a fallback regardless.v2.327.1+; GitHub-hostedubuntu-latestis well past that (and already runs v6 viadeploy.yml).node-version: 20left as-isThe
setup-nodenode-version: 20input is the project runtime for the screenshots scripts — a separate concern from the action runtime, and out of scope for this deprecation fix.setup-nodedownloads the requested Node version from theactions/node-versionsmanifest, so it keeps working after Node 20 leaves the runners' preinstalled toolcache on 2026-09-16. (Happy to bump the runtime deliberately in a separate change if desired.)Verification
checkoutv6.0.3andsetup-nodev6.4.0confirmed as the latest majors viagh api repos/<a>/releases/latest.uses:lines changed (@v4→@v6), structure untouched.workflow_dispatch-only (manual), so it won't run on push and isn't exercised by PR CI — it's run on demand from Actions → "Screenshots" → Run workflow.🤖 Generated with Claude Code