From a76c35304c67f5e5c779fa9fa7bafd30d020a37c Mon Sep 17 00:00:00 2001 From: Roman Priesol Date: Tue, 3 Nov 2026 18:22:05 +0100 Subject: [PATCH] Renovate: run in the official image instead of npm install npm picks a Renovate whose engines.node matches the runtime, so with setup-node on a non-matching major it silently installed an old, unsupported Renovate (37.x on Node 26). The image ships its own Node, skips the per-run install and its warnings, and installs tools like bundler on demand. --- .gitea/workflows/renovate.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/renovate.yaml b/.gitea/workflows/renovate.yaml index a4e4b00..9690b34 100644 --- a/.gitea/workflows/renovate.yaml +++ b/.gitea/workflows/renovate.yaml @@ -8,15 +8,15 @@ on: jobs: renovate: runs-on: ubuntu-latest + # Official image instead of `npm install -g renovate`: no per-run + # install, and Node is whatever this Renovate release ships with (npm + # silently picks an older Renovate when the runtime Node doesn't match + # its engines.node). Tools like Ruby/bundler for lockfile updates get + # installed on demand by the image's containerbase. Renovate bumps + # this tag itself. + container: + image: ghcr.io/renovatebot/renovate:44 steps: - - name: Setup Node - uses: actions/setup-node@v7 - with: - node-version: "26" - - - name: Install Renovate - run: npm install -g renovate - - name: Run Renovate run: renovate env: @@ -25,4 +25,6 @@ jobs: RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} RENOVATE_REPOSITORIES: "${{ gitea.repository }}" RENOVATE_ONBOARDING: "false" + RENOVATE_BINARY_SOURCE: install + # Secret named GH_COM_TOKEN: Gitea reserves the GITHUB_ prefix. GITHUB_COM_TOKEN: ${{ secrets.GH_COM_TOKEN }}