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.
36 lines
1.2 KiB
JSON
36 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
"extends": ["config:recommended"],
|
|
"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"],
|
|
"postUpgradeTasks": {
|
|
"commands": ["npm ci --ignore-scripts --no-audit --no-fund", "node bin/vendor-sync.mjs"],
|
|
"fileFilters": ["public/vendor/**"],
|
|
"executionMode": "branch"
|
|
}
|
|
}
|
|
],
|
|
"customManagers": [
|
|
{
|
|
"customType": "regex",
|
|
"description": "Dockerfile ARG *_VERSION pins annotated with a `# renovate:` comment",
|
|
"managerFilePatterns": ["/(^|/)Dockerfile$/"],
|
|
"matchStrings": [
|
|
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\s+ARG \\S+_VERSION=(?<currentValue>\\S+)"
|
|
],
|
|
"extractVersionTemplate": "^v?(?<version>.*)$"
|
|
}
|
|
]
|
|
}
|