Renovate: pin its job to Node 24 and renovate@44
CI / check (push) Successful in 20s
CI / deploy (push) Successful in 13s

npm picks a Renovate version whose engines.node matches the runtime, so
the Node 26 bump silently downgraded Renovate to 37.x, which rejected
renovate.json (managerFilePatterns) and did nothing. Node majors for
this job are now excluded from Renovate's own bumps.
This commit is contained in:
randy committed 2026-11-03 18:07:48 +01:00
1 parent 8c6c47b6fd
commit 240f7931c1
2 files changed
+15 -2

No files matched your search

+8 -2
View File
@@ -13,10 +13,14 @@ jobs:
# image), which setup-node/npm below need. # image), which setup-node/npm below need.
runs-on: brick-build runs-on: brick-build
steps: steps:
# Must match Renovate's own engines.node (44.x: ^24.11). On any
# other major, npm silently installs an older Renovate whose engines
# do match (Node 26 got 37.x, which rejects renovate.json). Kept off
# Node major bumps in renovate.json for that reason.
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v7 uses: actions/setup-node@v7
with: with:
node-version: "26" node-version: "24"
# Renovate shells out to `bundler lock` for Gemfile.lock updates. # Renovate shells out to `bundler lock` for Gemfile.lock updates.
# No checkout in this job, so the version can't come from # No checkout in this job, so the version can't come from
@@ -27,7 +31,9 @@ jobs:
ruby-version: "4.0.9" ruby-version: "4.0.9"
- name: Install Renovate - name: Install Renovate
run: npm install -g renovate # Major pinned for the same reason; bump together with node-version
# above once a new major's engines.node is checked.
run: npm install -g renovate@44
- name: Run Renovate - name: Run Renovate
run: renovate run: renovate
+7
View File
@@ -4,6 +4,13 @@
"timezone": "Europe/Bratislava", "timezone": "Europe/Bratislava",
"prHourlyLimit": 0, "prHourlyLimit": 0,
"packageRules": [ "packageRules": [
{
"description": "Renovate job's Node must match Renovate's engines.node, see renovate.yml",
"matchFileNames": [".gitea/workflows/renovate.yml"],
"matchDepNames": ["node"],
"matchUpdateTypes": ["major"],
"enabled": false
},
{ {
"description": "package.json only pins public/vendor/, so re-sync the vendored files in the same PR", "description": "package.json only pins public/vendor/, so re-sync the vendored files in the same PR",
"matchManagers": ["npm"], "matchManagers": ["npm"],