Repository navigation
ci: move GitHub Actions to their Node 24 majors - #239
Merged
Merged
Conversation
Node 20 actions are deprecated and force-run on Node 24. Pin the lowest node24 majors: checkout v5, setup-node v6 (v5 auto-caches for pnpm packageManager fields), upload-artifact v6, download-artifact v7, setup-python v6, pnpm/action-setup v5, action-gh-release v3. Only the uses: refs change.
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 Actions annotates every run with "Node.js 20 is deprecated ... being forced to run on Node.js 24". This moves each action to the lowest major whose
action.ymldeclaresruns.using: node24. Onlyuses:refs change; no inputs, permissions, triggers or steps are touched.Version choices (same pins across all BlockRunAI public repos)
.git/configexactly as in v4 (the storage move is v6). v5.1.0'sallow-unsafe-pr-checkoutchange only affectspull_request_target/workflow_run, which no workflow here uses.packageManagerfield (npm/yarn/pnpm). In blockrun-llm-ts,release-drift.ymlcalls setup-node with nocache:input in a job that never installs pnpm, and package.json declarespnpm@9.15.4— v5 would try to restore a pnpm cache and fail. v6 restricts auto-caching topackageManager: npm, which no repo declares, so behaviour matches v4. Otherwise the v4→v6 diff in.npmrcwriting is only thatalways-auth=falseis no longer appended.name:orpattern:+merge-multiple, which are unchanged.python-version, so the new.python-version/Pipfile resolution never kicks in.action.ymlinputs. We pass noversion, so it still readspackageManager.action.ymlinputs are byte-identical to v2.actions/setup-pythonv6.2.0 internally.Validation:
actionlint1.7.12 is clean on every workflow in the repo (before and after).Changes in this repo
checkout v4→v5 (3), setup-node v4→v6 (2), across ci, brand-sync and publish.
Publish workflow (cannot run on a PR — reasoned, not executed)
Heads-up: merging this PR will run publish.yml, because it triggers on pushes to main that touch
.github/workflows/publish.yml. At the time of writing, package.json, npm, the MCP registry and the GitHub release are all at 0.56.3, so the run's guards skip npm, skip the registry, and find release v0.56.3 already present, making it a no-op. If a version bump lands on main before this PR, merging it would publish that version.permissions(contents: write,id-token: write) and theNODE_AUTH_TOKENfallback are untouched. setup-node keepsregistry-urlwith nocache:and package.json has nopackageManagerfield, so no caching is introduced. The.npmrcdiffers only by the droppedalways-auth=falseline..git/configlike v4 did, sogit push origin $TAGworks the same way.