Install node for host-mode JavaScript actions

In host mode the runner runs actions/checkout and friends with the
host's node, and stpbuild had none: salary-insights' first run there
failed with 'Cannot find: node in PATH'. RUNNER_NODE_VERSION in a host
file installs that release from nodejs.org (sha256 from SHASUMS256.txt)
as /usr/local/bin/node. stpbuild pins Node 24, the actions' runtime;
Renovate bumps it within the major.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-27 13:50:07 +00:00
co-authored by Claude Opus 5.5
parent 04a447813c
commit 27260ee85e
4 changed files with 47 additions and 1 deletions
+14
View File
@@ -19,6 +19,14 @@
registryUrlTemplate: "https://gitea.com",
extractVersionTemplate: "^v(?<version>.+)$",
},
{
// The host `node` that runs JavaScript actions in host-mode jobs.
customType: "regex",
managerFilePatterns: ["/^hosts/[^/]+\\.env$/"],
matchStrings: ["RUNNER_NODE_VERSION=(?<currentValue>[0-9][\\w.-]*)"],
depNameTemplate: "node",
datasourceTemplate: "node-version",
},
],
packageRules: [
@@ -29,5 +37,11 @@
matchUpdateTypes: ["major"],
prBodyNotes: ["Major release: check the minimum Gitea version in the release notes against stpgit before merging."],
},
// Stay on the major that actions declare (`runs.using: node24`); move by hand.
{
matchDepNames: ["node"],
matchUpdateTypes: ["major"],
enabled: false,
},
],
}