Renovate: run in the official image instead of npm install
deploy / deploy (push) Successful in 8s

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.
This commit is contained in:
randy committed 2026-11-03 18:22:05 +01:00
1 parent 357b178547
commit a76c35304c
1 file changed
+10 -8
+10 -8
View File
@@ -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 }}