Skip to content

Commit a3df9e8

Browse files
committed
c
1 parent 0955d6c commit a3df9e8

File tree

1 file changed

+73
-64
lines changed

1 file changed

+73
-64
lines changed

renovate.json5

Lines changed: 73 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
2-
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3-
extends: ["mergeConfidence:all-badges", "group:monorepos"],
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: ['mergeConfidence:all-badges', 'group:monorepos'],
44
dependencyDashboard: true,
5-
rangeStrategy: "replace",
5+
rangeStrategy: 'replace',
66
automerge: false,
77

88
// Schedule Renovate to run during off-peak hours
99
schedule: [
10-
"after 10:00pm every weekday",
11-
"before 5:00am every weekday",
12-
"every weekend",
10+
'after 10:00pm on Monday, Wednesday, Friday',
11+
'before 5:00am on Monday, Wednesday, Friday',
1312
],
13+
1414
prConcurrentLimit: 8,
1515
prHourlyLimit: 4,
16-
timezone: "America/Tijuana",
16+
timezone: 'America/Tijuana',
1717

1818
// Commit and PR customization
19-
commitBody: "See associated pull request for more information.",
20-
semanticCommits: "enabled",
21-
semanticCommitScope: "",
22-
semanticCommitType: "build",
23-
labels: ["area: build & ci", "action: merge", "target: automation"],
19+
commitBody: 'See associated pull request for more information.',
20+
semanticCommits: 'enabled',
21+
semanticCommitScope: '',
22+
semanticCommitType: 'build',
23+
labels: ['area: build & ci', 'action: merge', 'target: automation'],
2424

2525
lockFileMaintenance: {
2626
enabled: true,
@@ -33,8 +33,8 @@
3333

3434
// Ignored dependencies in all repositories
3535
ignoreDeps: [
36-
"rules_pkg",
37-
"yarn", // Yarn is copied locally in all repositories where needed.
36+
'rules_pkg',
37+
'yarn', // Yarn is copied locally in all repositories where needed.
3838
],
3939

4040
packageRules: [
@@ -48,53 +48,53 @@
4848
{
4949
postUpgradeTasks: {
5050
commands: [
51-
"git restore .npmrc || true", // In case `.npmrc` avoid a hard error.
52-
"bazel mod deps --lockfile_mode=update",
51+
'git restore .npmrc || true', // In case `.npmrc` avoid a hard error.
52+
'bazel mod deps --lockfile_mode=update',
5353
],
5454
// This is theory should be `branch` but in some cases this is causing the command not to
5555
// run when in the same branch there are mixtures of update types by different managers.
56-
executionMode: "update",
56+
executionMode: 'update',
5757
},
58-
matchManagers: ["bazel", "bazel-module", "bazelisk"],
58+
matchManagers: ['bazel', 'bazel-module', 'bazelisk'],
5959
},
6060

6161
// Rule to disable NPM updates on branches other than 'main'.
6262
// But allow updating engines and packageManagers.
6363
{
6464
enabled: false,
65-
matchBaseBranches: ["!main"],
66-
matchDepNames: ["!node", "!pnpm", "!npm", "!yarn"],
67-
matchManagers: ["npm"],
65+
matchBaseBranches: ['!main'],
66+
matchDepNames: ['!node', '!pnpm', '!npm', '!yarn'],
67+
matchManagers: ['npm'],
6868
},
6969

7070
// Group all non-major dependencies together for updates.
7171
{
72-
groupName: "all non-major dependencies",
73-
matchDepNames: ["*", "!node", "!pnpm", "!npm", "!yarn"],
74-
matchUpdateTypes: ["digest", "patch", "minor"],
75-
matchManagers: ["npm"],
72+
groupName: 'all non-major dependencies',
73+
matchDepNames: ['*', '!node', '!pnpm', '!npm', '!yarn'],
74+
matchUpdateTypes: ['digest', 'patch', 'minor'],
75+
matchManagers: ['npm'],
7676
},
7777

7878
// ============================================================================
7979
// ECOSYSTEM-SPECIFIC GROUPING
8080
// ============================================================================
8181
// Delay NPM updates to mitigate dependency chain attacks by malicious actors.
8282
// This rule only affects direct dependencies.
83-
// {
84-
// minimumReleaseAge: '1 day',
85-
// matchDatasources: ['npm'],
86-
// },
83+
{
84+
minimumReleaseAge: '1 day',
85+
matchManagers: ['npm'],
86+
},
8787

8888
// Group Bazel updates
8989
{
90-
groupName: "bazel dependencies",
91-
matchManagers: ["bazel", "bazel-module"],
90+
groupName: 'bazel dependencies',
91+
matchManagers: ['bazel', 'bazel-module'],
9292
},
9393

9494
// Group GitHub Actions workflow
9595
{
96-
groupName: "all github actions",
97-
matchManagers: ["github-actions"],
96+
groupName: 'all github actions',
97+
matchManagers: ['github-actions'],
9898
},
9999

100100
// ============================================================================
@@ -104,53 +104,53 @@
104104
// Group updates related to Angular ecosystem across repositories
105105
{
106106
enabled: true, // Enable NPM updates of cross-repo dependencies on all branches.
107-
groupName: "cross-repo angular dependencies",
108-
followTag: "next",
107+
groupName: 'cross-repo angular dependencies',
108+
followTag: 'next',
109109
minimumReleaseAge: null,
110110
separateMajorMinor: false,
111-
schedule: ["* 0-22/2 * * *"], // Every minute, every 2 hours
111+
schedule: ['* 0-22/2 * * *'], // Every minute, every 2 hours
112112
matchPackageNames: [
113-
"@angular-devkit/**",
114-
"@angular/**",
115-
"@schematics/**",
116-
"angular/**",
117-
"ng-packagr",
113+
'@angular-devkit/**',
114+
'@angular/**',
115+
'@schematics/**',
116+
'angular/**',
117+
'ng-packagr',
118118
],
119119
},
120120

121121
// @angular/benchpress is not released as 'next'
122122
{
123123
followTag: null,
124-
matchDepNames: ["@angular/benchpress"],
124+
matchDepNames: ['@angular/benchpress'],
125125
},
126126

127127
// Disable 'next' tag tracking on non-main branches
128128
{
129-
matchBaseBranches: ["!main"],
129+
matchBaseBranches: ['!main'],
130130
followTag: null,
131131
},
132132

133133
// Keep minor and patch updates separate for TypeScript
134134
{
135-
matchDepNames: ["typescript"],
135+
matchDepNames: ['typescript'],
136136
separateMinorPatch: true,
137137
},
138138

139139
// Group TypeScript-related packages
140140
{
141-
groupName: "typescript dependencies",
142-
matchDepNames: ["typescript", "tslib"],
141+
groupName: 'typescript dependencies',
142+
matchDepNames: ['typescript', 'tslib'],
143143
},
144144

145145
// Limit how many times these packages get updated (They deploy each merged PR)
146146
{
147147
matchDepNames: [
148-
"github/codeql-action",
149-
"google-closure-compiler",
150-
"quicktype-core",
151-
"renovate",
148+
'github/codeql-action',
149+
'google-closure-compiler',
150+
'quicktype-core',
151+
'renovate',
152152
],
153-
schedule: ["on sunday and wednesday"],
153+
schedule: ['on sunday and wednesday'],
154154
},
155155

156156
// ============================================================================
@@ -160,36 +160,45 @@
160160
// Disable updates for placeholder or 0.0.0-style versions
161161
{
162162
enabled: false,
163-
matchCurrentVersion: "/^[~^]?0\\.0\\.0-/",
163+
matchCurrentVersion: '/^[~^]?0\\.0\\.0-/',
164164
},
165165

166166
// Disable major updates for specified dependencies
167167
{
168168
enabled: false,
169169
matchDepNames: [
170-
"@types/node",
171-
"node",
172-
"bazel", // bazelisk bazel version
173-
"npm",
174-
"rxjs",
175-
"tslib",
176-
"yarn",
170+
'@types/node',
171+
'node',
172+
'bazel', // bazelisk bazel version
173+
'npm',
174+
'rxjs',
175+
'tslib',
176+
'yarn',
177177
],
178-
matchUpdateTypes: ["major"],
178+
matchUpdateTypes: ['major'],
179179
},
180180

181181
// Disable TypeScript major and minor updates
182182
{
183183
enabled: false,
184-
matchDepNames: ["typescript"],
185-
matchUpdateTypes: ["major", "minor"],
184+
matchDepNames: ['typescript'],
185+
matchUpdateTypes: ['major', 'minor'],
186186
},
187187

188188
// Rule to disable major updates on branches other than 'main'.
189189
{
190190
enabled: false,
191-
matchBaseBranches: ["!main"],
192-
matchUpdateTypes: ["major"],
191+
matchBaseBranches: ['!main'],
192+
matchUpdateTypes: ['major'],
193+
},
194+
195+
// TODO(alanagius): delete the below rule once RC branch is `21.0.x`
196+
// Temporary disable updates of `rules_angular` on non main branches due to the APF breaking change
197+
// See: https://github.com/devversion/rules_angular/pull/63
198+
{
199+
enabled: false,
200+
matchBaseBranches: ['!main'],
201+
matchDepNames: ['rules_angular'],
193202
},
194203
],
195204
}

0 commit comments

Comments
 (0)