Skip to content

Commit 5d4771e

Browse files
authored
feat(repo): Use pnpm-workspace.yaml in renovate (#5380)
1 parent 9572bf5 commit 5d4771e

File tree

2 files changed

+33
-36
lines changed

2 files changed

+33
-36
lines changed

renovate.json5

+22-21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// This file is automatically generated. Do not edit directly but run the "renovate-config-generator.mjs" script.
22
{
3+
commitMessageLowerCase: "never",
34
extends: [
45
":combinePatchMinorReleases",
56
":dependencyDashboard",
@@ -15,37 +16,24 @@
1516
"group:monorepos",
1617
"group:recommended",
1718
],
18-
includePaths: [
19-
"package.json",
20-
"packages/**",
21-
],
2219
ignorePaths: [
2320
"**/node_modules/**",
2421
".nvmrc",
2522
"integration/templates/**",
2623
"playground/**",
2724
],
28-
nvm: {
29-
enabled: false,
30-
},
31-
minimumReleaseAge: "3 days",
32-
timezone: "GMT",
33-
schedule: [
34-
"before 7am on the first day of the week",
25+
includePaths: [
26+
"package.json",
27+
"packages/**",
28+
"pnpm-workspace.yaml",
3529
],
36-
prCreation: "immediate",
37-
updateNotScheduled: false,
3830
major: {
3931
dependencyDashboardApproval: true,
4032
},
41-
rangeStrategy: "bump",
42-
prHourlyLimit: 4,
43-
prConcurrentLimit: 16,
44-
postUpdateOptions: [
45-
"pnpmDedupe",
46-
],
47-
semanticCommitScope: "repo",
48-
commitMessageLowerCase: "never",
33+
minimumReleaseAge: "3 days",
34+
nvm: {
35+
enabled: false,
36+
},
4937
packageRules: [
5038
{
5139
groupName: "[DEV] minor & patch dependencies",
@@ -1567,4 +1555,17 @@
15671555
],
15681556
},
15691557
],
1558+
postUpdateOptions: [
1559+
"pnpmDedupe",
1560+
],
1561+
prConcurrentLimit: 16,
1562+
prCreation: "immediate",
1563+
prHourlyLimit: 4,
1564+
rangeStrategy: "bump",
1565+
schedule: [
1566+
"before 7am on the first day of the week",
1567+
],
1568+
semanticCommitScope: "repo",
1569+
timezone: "GMT",
1570+
updateNotScheduled: false,
15701571
}

scripts/renovate-config-generator.mjs

+11-15
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ for (const pkg of packageNames) {
169169
}
170170

171171
const renovateConfig = {
172+
commitMessageLowerCase: 'never',
172173
extends: [
173174
':combinePatchMinorReleases',
174175
':dependencyDashboard',
@@ -184,26 +185,21 @@ const renovateConfig = {
184185
'group:monorepos',
185186
'group:recommended',
186187
],
187-
includePaths: ['package.json', 'packages/**'],
188188
ignorePaths: ['**/node_modules/**', '.nvmrc', 'integration/templates/**', 'playground/**'],
189-
nvm: {
190-
enabled: false,
191-
},
189+
includePaths: ['package.json', 'packages/**', 'pnpm-workspace.yaml'],
190+
major: { dependencyDashboardApproval: true },
192191
minimumReleaseAge: '3 days',
193-
timezone: 'GMT',
194-
schedule: ['before 7am on the first day of the week'],
192+
nvm: { enabled: false },
193+
packageRules: Array.from(rules.values()).flat().concat(defaultRules),
194+
postUpdateOptions: ['pnpmDedupe'],
195+
prConcurrentLimit: 16,
195196
prCreation: 'immediate',
196-
updateNotScheduled: false,
197-
major: {
198-
dependencyDashboardApproval: true,
199-
},
200-
rangeStrategy: 'bump',
201197
prHourlyLimit: 4,
202-
prConcurrentLimit: 16,
203-
postUpdateOptions: ['pnpmDedupe'],
198+
rangeStrategy: 'bump',
199+
schedule: ['before 7am on the first day of the week'],
204200
semanticCommitScope: 'repo',
205-
commitMessageLowerCase: 'never',
206-
packageRules: Array.from(rules.values()).flat().concat(defaultRules),
201+
timezone: 'GMT',
202+
updateNotScheduled: false,
207203
};
208204

209205
await fs.writeFile(

0 commit comments

Comments
 (0)