Skip to content

Finish the Node 20 removal: upload-pages-artifact was hiding one too - #29

Merged
welshofer merged 1 commit into
mainfrom
jaywelshofer-microsoft-didactic-waffle
Aug 17, 2026
Merged

Finish the Node 20 removal: upload-pages-artifact was hiding one too#29
welshofer merged 1 commit into
mainfrom
jaywelshofer-microsoft-didactic-waffle

Conversation

@welshofer

Copy link
Copy Markdown
Owner

Follow-up to #28, which I got partly wrong.

#28 left upload-pages-artifact at v3 and claimed it "has no Node 20 problem to solve." The first Docs run on main after that merge said otherwise:

Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/upload-artifact@v4

v3 is a composite action, so the deprecated runtime belongs to the action it wraps. It never shows up when you grep the workflow for versions, and the annotation only appears on main, where Docs runs — which is why #28's own PR checks came back clean. upload-pages-artifact@v5 pins upload-artifact@v7 (Node 24).

The reason I skipped v4+ was its dotfile change, and that reason was a guess. So I checked it instead: pulled the github-pages artifact from the last successful deploy and listed it. 4,914 entries, zero hidden files. transform-for-static-hosting doesn't emit any, so include-hidden-files can stay at its default and the bump is free. The comment now records the measurement and names the input to set if DocC ever starts emitting one.

After this, nothing in .github/workflows/ runs on Node 20 — including one level down.

The previous commit left upload-pages-artifact at v3 and asserted it "has
no Node 20 problem to solve". The first Docs run on main disproved that:

  Node.js 20 is deprecated. The following actions target Node.js 20 ...:
  actions/upload-artifact@v4

v3 is a composite, and the deprecated runtime is the action it wraps — so
it never appears when you grep the workflow for versions, and the warning
only surfaces on main, where Docs runs. v5 pins upload-artifact@v7.

I had skipped v4+ over its dotfile change, which was a guess. Checking
instead: the artifact from the last successful deploy holds 4,914 entries
and not one of them is hidden, so `include-hidden-files` can stay at its
default. The comment now records that, and points at the input to set if
DocC ever emits one.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@welshofer
welshofer merged commit ec80ddf into main Aug 17, 2026
6 checks passed
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