|
1 | 1 | { |
2 | | - $schema: 'https://docs.renovatebot.com/renovate-schema.json', |
3 | | - extends: ['group:monorepos'], |
| 2 | + $schema: "https://docs.renovatebot.com/renovate-schema.json", |
| 3 | + extends: ["group:monorepos"], |
4 | 4 | dependencyDashboard: true, |
5 | | - rangeStrategy: 'replace', |
| 5 | + rangeStrategy: "replace", |
6 | 6 | automerge: false, |
7 | 7 |
|
8 | 8 | // Temporary workaround for https://github.com/renovatebot/renovate/discussions/30812 |
9 | 9 | ignoreScripts: false, |
10 | 10 |
|
11 | 11 | // Schedule Renovate to run during off-peak hours |
12 | | - schedule: ['after 10:00pm every weekday', 'before 5:00am every weekday', 'every weekend'], |
| 12 | + schedule: [ |
| 13 | + "after 10:00pm every weekday", |
| 14 | + "before 5:00am every weekday", |
| 15 | + "every weekend", |
| 16 | + ], |
13 | 17 | prConcurrentLimit: 8, |
14 | 18 | prHourlyLimit: 4, |
15 | | - timezone: 'America/Tijuana', |
| 19 | + timezone: "America/Tijuana", |
16 | 20 |
|
17 | 21 | // Commit and PR customization |
18 | | - commitBody: 'See associated pull request for more information.', |
19 | | - semanticCommits: 'enabled', |
20 | | - semanticCommitScope: '', |
21 | | - semanticCommitType: 'build', |
22 | | - labels: ['area: build & ci', 'action: merge'], |
| 22 | + commitBody: "See associated pull request for more information.", |
| 23 | + semanticCommits: "enabled", |
| 24 | + semanticCommitScope: "", |
| 25 | + semanticCommitType: "build", |
| 26 | + labels: ["area: build & ci", "action: merge"], |
23 | 27 |
|
24 | 28 | lockFileMaintenance: { |
25 | 29 | enabled: true, |
|
32 | 36 |
|
33 | 37 | // Ignored dependencies in all repositories |
34 | 38 | ignoreDeps: [ |
35 | | - 'rules_pkg', |
36 | | - 'yarn', // Yarn is copied locally in all repositories where needed. |
| 39 | + "rules_pkg", |
| 40 | + "yarn", // Yarn is copied locally in all repositories where needed. |
37 | 41 | ], |
38 | 42 |
|
39 | 43 | // Renovate does not update Bazel lockfile for the time being. |
40 | 44 | // Workaround for https://github.com/renovatebot/renovate/issues/25557 |
41 | 45 | postUpgradeTasks: { |
42 | 46 | commands: [ |
43 | | - '.npmrc', |
44 | | - 'pnpm install --frozen-lockfile', |
45 | | - 'pnpm bazel mod deps --lockfile_mode=update', |
| 47 | + ".npmrc", |
| 48 | + "pnpm install --frozen-lockfile", |
| 49 | + "pnpm bazel mod deps --lockfile_mode=update", |
46 | 50 | ], |
47 | | - fileFilters: ['MODULE.bazel.lock'], |
48 | | - executionMode: 'branch', |
| 51 | + fileFilters: ["MODULE.bazel.lock"], |
| 52 | + executionMode: "branch", |
49 | 53 | }, |
50 | 54 |
|
51 | 55 | packageRules: [ |
|
55 | 59 |
|
56 | 60 | // Rule to disable updates on branches other than 'main'. |
57 | 61 | { |
58 | | - 'enabled': false, |
59 | | - 'matchBaseBranches': ['!main'], |
60 | | - 'matchDepNames': ['!node', '!pnpm', '!npm', '!yarn'], |
| 62 | + enabled: false, |
| 63 | + matchBaseBranches: ["!main"], |
| 64 | + matchDepNames: ["!node", "!pnpm", "!npm", "!yarn"], |
61 | 65 | }, |
62 | 66 |
|
63 | 67 | // Group all non-major dependencies together for updates on the 'main' branch. |
64 | 68 | { |
65 | | - 'enabled': true, |
66 | | - 'matchBaseBranches': ['main'], |
67 | | - 'groupName': 'all non-major dependencies', |
68 | | - 'matchDepNames': ['*', '!node', '!pnpm', '!npm', '!yarn'], |
69 | | - 'matchUpdateTypes': ['digest', 'patch', 'minor'], |
| 69 | + matchBaseBranches: ["main"], |
| 70 | + groupName: "all non-major dependencies", |
| 71 | + matchDepNames: ["*", "!node", "!pnpm", "!npm", "!yarn"], |
| 72 | + matchUpdateTypes: ["digest", "patch", "minor"], |
70 | 73 | }, |
71 | 74 | // ============================================================================ |
72 | 75 | // ECOSYSTEM-SPECIFIC GROUPING |
73 | 76 | // ============================================================================ |
74 | 77 |
|
75 | 78 | // Group Bazel updates |
76 | 79 | { |
77 | | - enabled: true, |
78 | | - groupName: 'bazel dependencies', |
79 | | - matchManagers: ['bazel'], |
| 80 | + groupName: "bazel dependencies", |
| 81 | + matchManagers: ["bazel"], |
80 | 82 | }, |
81 | 83 |
|
82 | 84 | // Group GitHub Actions workflow |
83 | 85 | { |
84 | | - enabled: true, |
85 | | - groupName: 'all github actions', |
86 | | - matchManagers: ['github-actions'], |
| 86 | + groupName: "all github actions", |
| 87 | + matchManagers: ["github-actions"], |
| 88 | + // Disable 'postUpdateTasks' for changes that do not effect the BAZEL lockfile or generated files. |
| 89 | + postUpgradeTasks: { commands: [] }, |
87 | 90 | }, |
88 | 91 |
|
89 | 92 | // ============================================================================ |
|
92 | 95 |
|
93 | 96 | // Group updates related to Angular ecosystem across repositories |
94 | 97 | { |
95 | | - enabled: true, |
96 | | - groupName: 'cross-repo angular dependencies', |
97 | | - followTag: 'next', |
| 98 | + groupName: "cross-repo angular dependencies", |
| 99 | + followTag: "next", |
98 | 100 | separateMajorMinor: false, |
99 | | - schedule: ['at any time'], |
| 101 | + schedule: ["at any time"], |
100 | 102 | matchPackageNames: [ |
101 | | - '@angular-devkit/**', |
102 | | - '@angular/**', |
103 | | - '@schematics/**', |
104 | | - 'angular/**', |
105 | | - 'ng-packagr', |
| 103 | + "@angular-devkit/**", |
| 104 | + "@angular/**", |
| 105 | + "@schematics/**", |
| 106 | + "angular/**", |
| 107 | + "ng-packagr", |
106 | 108 | ], |
107 | 109 | }, |
108 | 110 |
|
109 | 111 | // @angular/benchpress is not released as 'next' |
110 | 112 | { |
111 | 113 | followTag: null, |
112 | | - matchDepNames: ['@angular/benchpress'], |
113 | | - }, |
114 | | - |
115 | | - // Disable 'postUpdateTasks' for changes that do not effect the BAZEL lock files or generated files. |
116 | | - { |
117 | | - matchManagers: ['github-actions'], |
118 | | - postUpgradeTasks: null, |
| 114 | + matchDepNames: ["@angular/benchpress"], |
119 | 115 | }, |
120 | 116 |
|
121 | 117 | // Disable 'next' tag tracking on non-main branches |
122 | 118 | { |
123 | | - matchBaseBranches: ['!main'], |
| 119 | + matchBaseBranches: ["!main"], |
124 | 120 | followTag: null, |
125 | 121 | }, |
126 | 122 |
|
127 | 123 | // Keep minor and patch updates separate for TypeScript |
128 | 124 | { |
129 | | - matchDepNames: ['typescript'], |
| 125 | + matchDepNames: ["typescript"], |
130 | 126 | separateMinorPatch: true, |
131 | 127 | }, |
132 | 128 |
|
133 | 129 | // Group TypeScript-related packages |
134 | 130 | { |
135 | | - groupName: 'typescript dependencies', |
136 | | - matchDepNames: ['typescript', 'tslib'], |
| 131 | + groupName: "typescript dependencies", |
| 132 | + matchDepNames: ["typescript", "tslib"], |
137 | 133 | }, |
138 | 134 |
|
139 | 135 | // Limit how many times these packages get updated (They deploy each merged PR) |
140 | 136 | { |
141 | | - matchDepNames: ['renovate', 'quicktype-core', 'google-closure-compiler'], |
142 | | - schedule: ['on sunday and wednesday'], |
| 137 | + matchDepNames: ["renovate", "quicktype-core", "google-closure-compiler"], |
| 138 | + schedule: ["on sunday and wednesday"], |
143 | 139 | }, |
144 | 140 |
|
145 | 141 | // ============================================================================ |
|
149 | 145 | // Disable updates for placeholder or 0.0.0-style versions |
150 | 146 | { |
151 | 147 | enabled: false, |
152 | | - matchCurrentVersion: '/^[~^]?0\\.0\\.0-/', |
| 148 | + matchCurrentVersion: "/^[~^]?0\\.0\\.0-/", |
153 | 149 | }, |
154 | 150 |
|
155 | 151 | // Disable major updates for specified dependencies |
156 | 152 | { |
157 | 153 | enabled: false, |
158 | 154 | matchDepNames: [ |
159 | | - '@types/node', |
160 | | - 'node', |
161 | | - 'bazel', // bazelisk bazel version |
162 | | - 'npm', |
163 | | - 'rxjs', |
164 | | - 'tslib', |
165 | | - 'yarn', |
| 155 | + "@types/node", |
| 156 | + "node", |
| 157 | + "bazel", // bazelisk bazel version |
| 158 | + "npm", |
| 159 | + "rxjs", |
| 160 | + "tslib", |
| 161 | + "yarn", |
166 | 162 | ], |
167 | | - matchUpdateTypes: ['major'], |
| 163 | + matchUpdateTypes: ["major"], |
168 | 164 | }, |
169 | 165 |
|
170 | 166 | // Disable TypeScript major and minor updates |
171 | 167 | { |
172 | 168 | enabled: false, |
173 | | - matchDepNames: ['typescript'], |
174 | | - matchUpdateTypes: ['major', 'minor'], |
| 169 | + matchDepNames: ["typescript"], |
| 170 | + matchUpdateTypes: ["major", "minor"], |
175 | 171 | }, |
176 | 172 |
|
177 | 173 | // Rule to disable major updates on branches other than 'main'. |
178 | 174 | { |
179 | | - 'enabled': false, |
180 | | - 'matchBaseBranches': ['!main'], |
181 | | - 'matchUpdateTypes': ['major'], |
| 175 | + enabled: false, |
| 176 | + matchBaseBranches: ["!main"], |
| 177 | + matchUpdateTypes: ["major"], |
182 | 178 | }, |
183 | 179 | ], |
184 | 180 | } |
0 commit comments