Skip to content

Commit e198c60

Browse files
committed
chore: add custom manager for Node.js version tracking in renovate.json
1 parent 3d2e222 commit e198c60

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

renovate.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@
88
],
99
"minimumReleaseAge": "5 days",
1010
"internalChecksFilter": "strict",
11+
"customManagers": [
12+
{
13+
"description": "Track Node.js version in frontend-maven-plugin <node.version> property",
14+
"customType": "regex",
15+
"managerFilePatterns": ["/(^|/)pom\\.xml$/"],
16+
"matchStrings": ["<node\\.version>v(?<currentValue>[^<]+)</node\\.version>"],
17+
"depNameTemplate": "node",
18+
"datasourceTemplate": "node-version",
19+
"versioningTemplate": "node",
20+
"extractVersionTemplate": "^v?(?<version>.+)$"
21+
}
22+
],
1123
"packageRules": [
1224
{
1325
"description": "Automatically merge minor and patch-level updates when checks pass, creates a PR otherwise",
@@ -33,6 +45,13 @@
3345
"com.puppycrawl.tools:checkstyle"
3446
],
3547
"allowedVersions": "<13"
48+
},
49+
{
50+
"description": "Group all Node.js version updates (pom.xml, .nvmrc, package.json engines, GitHub Actions) into one PR",
51+
"matchDepNames": ["node"],
52+
"matchDatasources": ["node-version"],
53+
"groupName": "Node.js version",
54+
"groupSlug": "nodejs-version"
3655
}
3756
]
3857
}

0 commit comments

Comments
 (0)