Skip to content

fix: pin the Node version in the shared build surface - #41

Merged
kieronlanning merged 1 commit into
mainfrom
fix/pin-node-version
Nov 4, 2026
Merged

kieronlanning merged 1 commit into
mainfrom
fix/pin-node-version

Conversation

@kieronlanning

Copy link
Copy Markdown
Contributor

Problem

The shared build surface sets up .NET and Bun but never Node, so astro check (and any other JavaScript tooling) inherits whatever node the ubuntu-latest image happens to expose. That drifts between runner images: an identical commit passed at 10:07 and failed at 18:40 with

Node.js v22.23.3 is not supported by Astro!
Please upgrade Node.js to a supported version: ">=22.23.4"

Re-running the same commit then passed, confirming the failure was the runner environment, not the code.

Change

Pin Node at every site that already sets up Bun, and expose it as an optional node-version input (default 26.x, the current LTS) alongside the existing dotnet-version input:

  • .github/workflows/purview-build.yml - reusable PR/build workflow
  • .github/workflows/purview-release.yml - threads the new input to the release action
  • actions/purview-release/action.yml - composite release action
  • .github/actions/purview-build/action.yml - composite build action

The input is additive and optional, so existing callers are unaffected.

Notes

  • No Purview.Build version bump: this is a workflow/action-only change, picked up at @main.
  • All four files parse as valid YAML; the pre-commit actionlint check passes.

@kieronlanning
kieronlanning merged commit ee3cfca into main Nov 4, 2026
1 check passed
@kieronlanning
kieronlanning deleted the fix/pin-node-version branch November 4, 2026 19:39
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