Skip to content

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

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 (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 the NODE_AUTH_TOKEN fallback are untouched. setup-node keeps registry-url with no cache: and package.json has no packageManager field, so no caching is introduced. The .npmrc differs only by the dropped always-auth=false line.
  • The tag step pushes with the token checkout persists. checkout v5 still writes it to .git/config like v4 did, so git push origin $TAG works the same way.

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 d6005cb into main Nov 28, 2026
3 checks passed
@VickyXAI
VickyXAI deleted the ci/actions-node24 branch November 28, 2026 21:07
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