Skip to content

ci(docs): move docs workflow actions off the Node 20 runtime#128

Merged
dcmcand merged 1 commit into
mainfrom
ci/upgrade-node20-actions
Jul 7, 2026
Merged

ci(docs): move docs workflow actions off the Node 20 runtime#128
dcmcand merged 1 commit into
mainfrom
ci/upgrade-node20-actions

Conversation

@dcmcand

@dcmcand dcmcand commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Why

GitHub is deprecating the Node 20 action runtime. I audited every workflow and checked each action's runs.using. All of them already run on Node 24 except the docs workflow, which had four actions still on Node 20:

  • actions/checkout@v4
  • actions/setup-node@v4
  • cloudflare/wrangler-action@v3
  • thollander/actions-comment-pull-request@v3

Changes (docs.yml only)

  • checkoutv7.0.0 and setup-nodev6.4.0, SHA-pinned to match the convention the other five workflows already use.
  • wrangler-actionv4.0.0. The apiToken / accountId / command inputs and the pages-deployment-alias-url output (used by the preview-comment step) are unchanged in v4, so behavior is the same.
  • Comment step: thollander/actions-comment-pull-request has no Node 24 release (latest v3.0.1 is still Node 20), so it's replaced with marocchino/sticky-pull-request-comment@v3.0.5 (Node 24). The header: docs-preview key reproduces the previous sticky-per-PR dedup that comment-tag provided, so the preview comment still updates in place instead of stacking.

Verification

  • docs.yml parses as valid YAML.
  • Confirmed no checkout@v4 / setup-node@v4 / wrangler-action@v3 / actions-comment-pull-request refs remain in any workflow.
  • Verified each target version's runs.using is node24 and that every input/output this workflow relies on still exists at the pinned ref.

The docs job will exercise all four updated actions (build + Cloudflare Pages deploy + preview comment) on this PR.

GitHub is deprecating the Node 20 action runtime. The docs workflow was
the last one still on it; every other workflow already runs on Node 24.

- Pin actions/checkout to v7.0.0 and actions/setup-node to v6.4.0,
  matching the SHA-pinned convention the other workflows use.
- Bump cloudflare/wrangler-action to v4.0.0. The apiToken/accountId/
  command inputs and the pages-deployment-alias-url output are unchanged.
- Replace thollander/actions-comment-pull-request (no Node 24 release
  exists) with marocchino/sticky-pull-request-comment v3.0.5, which keeps
  the same sticky-per-PR preview comment via the header key.
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

📄 Docs preview for ci/upgrade-node20-actions:
https://ci-upgrade-node20-actions.llm-serving-pack.pages.dev

@dcmcand dcmcand merged commit 7edc601 into main Jul 7, 2026
7 checks passed
@dcmcand dcmcand deleted the ci/upgrade-node20-actions branch July 7, 2026 08:38
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