Repository navigation
ci: move GitHub Actions to their Node 24 majors - #124
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 (6), setup-python v5→v6 (4), setup-node v4→v6 (1), upload-artifact v4→v6 (2), download-artifact v4→v7 (2), across ci, brand-sync, publish and publish-llama-index.
pypa/gh-action-pypi-publish@release/v1is unchanged (composite; already uses setup-python v6.2.0 internally).Publish workflows (cannot run on a PR — reasoned, not executed)
publishjobs keepenvironment: pypiandpermissions: id-token: writeunchanged.name: dist(path: dist/) andname: dist-llama-index(path: integrations/llama-index-llms-blockrun/dist/); publish downloads by the samename:intodist/. Downloading a single artifact by name still extracts directly intopathin download-artifact v7 (the v5 path change only affects single downloads byartifact-ids). upload v6 and download v7 both use@actions/artifactv5 on the same v4 artifact backend that v4 used, so names match and files land indist/, where gh-action-pypi-publish readspackages-dirby default.python-version('3.11' / '3.12').