From 48622a99c2b6401ac953627fb480a3f3f10e02ed Mon Sep 17 00:00:00 2001 From: mixeme Date: Wed, 8 Jul 2026 08:58:40 +0300 Subject: [PATCH] ci: install Node.js in Codeberg container before JS actions The golang:1.22-bookworm container has no node binary and Codeberg's runner does not inject one, so checkout/forgejo-release failed with 'node: not found'. Add a pre-checkout run step (which executes via the container shell and needs no node itself) to apt-install nodejs before the JS-based actions run. Co-Authored-By: Claude Opus 4.8 --- .forgejo/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index fa9d61f..bedf198 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -26,6 +26,18 @@ jobs: container: image: golang:1.22-bookworm steps: + - name: Provide Node.js for JS actions + # golang:1.22-bookworm ships no Node, and Codeberg's runner does not + # inject one, so JS actions (checkout, forgejo-release) fail with + # "node: not found". A run step executes through the container shell and + # needs no Node itself, so it can install Node before those actions run. + # (If a "node version" error ever appears, swap Debian's nodejs 18 for a + # NodeSource node 20 install.) + run: | + apt-get update + apt-get install -y --no-install-recommends nodejs + command -v node || ln -s "$(command -v nodejs)" /usr/local/bin/node + - name: Checkout uses: https://code.forgejo.org/actions/checkout@v4