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
+6 -1
View File
@@ -30,7 +30,12 @@ registration turns it into `/var/lib/gitea-runner/.runner`, which is the
lasting credential. Gitea's runner list then shows the new runner.
The VM needs `curl`, `git` and, for container or host jobs that use it,
Docker with `RUNNER_USER` in the `docker` group. A VM without Tailscale can
Docker with `RUNNER_USER` in the `docker` group. Host-mode jobs that use
JavaScript actions (`actions/checkout`, `actions/setup-node`, …) also need
`node` on the host, or they fail with `Cannot find: node in PATH`: set
`RUNNER_NODE_VERSION` in the host file and `install.sh` puts that release at
`/usr/local/bin/node` (only `node`; jobs get their own Node from
`actions/setup-node`). A VM without Tailscale can
still be set up from the Proxmox host: `qm guest exec <vmid> -- bash -c '...'`.
## Upgrading