diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml index 1cb16fa..be354d0 100644 --- a/.gitea/workflows/renovate.yml +++ b/.gitea/workflows/renovate.yml @@ -13,10 +13,14 @@ jobs: # image), which setup-node/npm below need. runs-on: brick-build 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 uses: actions/setup-node@v7 with: - node-version: "26" + node-version: "24" # Renovate shells out to `bundler lock` for Gemfile.lock updates. # No checkout in this job, so the version can't come from @@ -27,7 +31,9 @@ jobs: ruby-version: "4.0.9" - 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 run: renovate diff --git a/renovate.json b/renovate.json index fb1e6db..1b51834 100644 --- a/renovate.json +++ b/renovate.json @@ -4,6 +4,13 @@ "timezone": "Europe/Bratislava", "prHourlyLimit": 0, "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", "matchManagers": ["npm"],