Archived
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:
1 parent
357b178547
commit
a76c35304c
1 file changed
+10
-8
@@ -8,15 +8,15 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
renovate:
|
renovate:
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- name: Setup Node
|
|
||||||
uses: actions/setup-node@v7
|
|
||||||
with:
|
|
||||||
node-version: "26"
|
|
||||||
|
|
||||||
- name: Install Renovate
|
|
||||||
run: npm install -g renovate
|
|
||||||
|
|
||||||
- name: Run Renovate
|
- name: Run Renovate
|
||||||
run: renovate
|
run: renovate
|
||||||
env:
|
env:
|
||||||
@@ -25,4 +25,6 @@ jobs:
|
|||||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
RENOVATE_REPOSITORIES: "${{ gitea.repository }}"
|
RENOVATE_REPOSITORIES: "${{ gitea.repository }}"
|
||||||
RENOVATE_ONBOARDING: "false"
|
RENOVATE_ONBOARDING: "false"
|
||||||
|
RENOVATE_BINARY_SOURCE: install
|
||||||
|
# Secret named GH_COM_TOKEN: Gitea reserves the GITHUB_ prefix.
|
||||||
GITHUB_COM_TOKEN: ${{ secrets.GH_COM_TOKEN }}
|
GITHUB_COM_TOKEN: ${{ secrets.GH_COM_TOKEN }}
|
||||||
Reference in new issue
Block a user