Skip to content

ci: move GitHub Actions to their Node 24 majors - #124

Merged
VickyXAI merged 1 commit into
mainfrom
ci/actions-node24
Nov 28, 2026
Merged

VickyXAI merged 1 commit into
mainfrom
ci/actions-node24

Conversation

@VickyXAI

Copy link
Copy Markdown
Contributor

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.yml declares runs.using: node24. Only uses: refs change; no inputs, permissions, triggers or steps are touched.

Version choices (same pins across all BlockRunAI public repos)

Action From To Why this major
actions/checkout v4 (node20) v5 (node24) Lowest node24 major. Only change is the runtime; credentials are still persisted to .git/config exactly as in v4 (the storage move is v6). v5.1.0's allow-unsafe-pr-checkout change only affects pull_request_target/workflow_run, which no workflow here uses.
actions/setup-node v4 (node20) v6 (node24) v5 is the lowest node24 major, but v5 auto-enables caching for any packageManager field (npm/yarn/pnpm). In blockrun-llm-ts, release-drift.yml calls setup-node with no cache: input in a job that never installs pnpm, and package.json declares pnpm@9.15.4 — v5 would try to restore a pnpm cache and fail. v6 restricts auto-caching to packageManager: npm, which no repo declares, so behaviour matches v4. Otherwise the v4→v6 diff in .npmrc writing is only that always-auth=false is no longer appended.
actions/upload-artifact v4 (node20) v6 (node24) v5 still runs on node20. v5/v6 are runtime-only changes; name/path/retention/if-no-files-found semantics unchanged.
actions/download-artifact v4 (node20) v7 (node24) v5 and v6 still run on node20. The only behaviour break in the range (v5) is the extraction path for a single artifact downloaded by ID; we only download by name: or pattern: + merge-multiple, which are unchanged.
actions/setup-python v5 (node20) v6 (node24) Lowest node24 major. Breaking change is the runtime only; every call passes an explicit python-version, so the new .python-version/Pipfile resolution never kicks in.
pnpm/action-setup v4 (node20) v5 (node24) v5.0.0 is "run the action on Node.js 24", identical action.yml inputs. We pass no version, so it still reads packageManager.
softprops/action-gh-release v2 (node20) v3 (node24) v3.0.0 moves the runtime to node24; action.yml inputs are byte-identical to v2.
pypa/gh-action-pypi-publish release/v1 unchanged Composite action; it already pins actions/setup-python v6.2.0 internally.

Validation: actionlint 1.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/v1 is unchanged (composite; already uses setup-python v6.2.0 internally).

Publish workflows (cannot run on a PR — reasoned, not executed)

  • publish.yml / publish-llama-index.yml (PyPI trusted publishing): the publish jobs keep environment: pypi and permissions: id-token: write unchanged.
  • Artifact hand-off: build uploads name: dist (path: dist/) and name: dist-llama-index (path: integrations/llama-index-llms-blockrun/dist/); publish downloads by the same name: into dist/. Downloading a single artifact by name still extracts directly into path in download-artifact v7 (the v5 path change only affects single downloads by artifact-ids). upload v6 and download v7 both use @actions/artifact v5 on the same v4 artifact backend that v4 used, so names match and files land in dist/, where gh-action-pypi-publish reads packages-dir by default.
  • setup-python v6: both publish builds pass an explicit python-version ('3.11' / '3.12').

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.
@VickyXAI
VickyXAI merged commit 4570a8f into main Nov 28, 2026
6 checks passed
@VickyXAI
VickyXAI deleted the ci/actions-node24 branch November 28, 2026 21:05
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