|
1 | 1 | { |
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"], |
4 | 4 | dependencyDashboard: true, |
5 | | - rangeStrategy: 'replace', |
| 5 | + rangeStrategy: "replace", |
6 | 6 | automerge: false, |
7 | 7 |
|
8 | 8 | // Schedule Renovate to run during off-peak hours |
9 | | - schedule: ['after 10:00pm every weekday', 'before 5:00am every weekday', 'every weekend'], |
| 9 | + schedule: [ |
| 10 | + "after 10:00pm every weekday", |
| 11 | + "before 5:00am every weekday", |
| 12 | + "every weekend", |
| 13 | + ], |
10 | 14 | prConcurrentLimit: 8, |
11 | 15 | prHourlyLimit: 4, |
12 | | - timezone: 'America/Tijuana', |
| 16 | + timezone: "America/Tijuana", |
13 | 17 |
|
14 | 18 | // Commit and PR customization |
15 | | - commitBody: 'See associated pull request for more information.', |
16 | | - semanticCommits: 'enabled', |
17 | | - semanticCommitScope: '', |
18 | | - semanticCommitType: 'build', |
19 | | - 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"], |
20 | 24 |
|
21 | 25 | lockFileMaintenance: { |
22 | 26 | enabled: true, |
|
29 | 33 |
|
30 | 34 | // Ignored dependencies in all repositories |
31 | 35 | ignoreDeps: [ |
32 | | - 'rules_pkg', |
33 | | - 'yarn', // Yarn is copied locally in all repositories where needed. |
| 36 | + "rules_pkg", |
| 37 | + "yarn", // Yarn is copied locally in all repositories where needed. |
34 | 38 | ], |
35 | 39 |
|
36 | 40 | packageRules: [ |
|
44 | 48 | { |
45 | 49 | postUpgradeTasks: { |
46 | 50 | commands: [ |
47 | | - 'git restore .npmrc || true', // In case `.npmrc` avoid a hard error. |
48 | | - '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", |
49 | 53 | ], |
50 | 54 | // This is theory should be `branch` but in some cases this is causing the command not to |
51 | 55 | // run when in the same branch there are mixtures of update types by different managers. |
52 | | - executionMode: 'update', |
| 56 | + executionMode: "update", |
53 | 57 | }, |
54 | | - matchManagers: ['bazel', 'bazel-module', 'bazelisk'], |
| 58 | + matchManagers: ["bazel", "bazel-module", "bazelisk"], |
55 | 59 | }, |
56 | 60 |
|
57 | 61 | // Rule to disable NPM updates on branches other than 'main'. |
58 | 62 | // But allow updating engines and packageManagers. |
59 | 63 | { |
60 | 64 | enabled: false, |
61 | | - matchBaseBranches: ['!main'], |
62 | | - matchDepNames: ['!node', '!pnpm', '!npm', '!yarn'], |
63 | | - matchManagers: ['npm'], |
| 65 | + matchBaseBranches: ["!main"], |
| 66 | + matchDepNames: ["!node", "!pnpm", "!npm", "!yarn"], |
| 67 | + matchManagers: ["npm"], |
64 | 68 | }, |
65 | 69 |
|
66 | 70 | // Group all non-major dependencies together for updates. |
67 | 71 | { |
68 | | - groupName: 'all non-major dependencies', |
69 | | - matchDepNames: ['*', '!node', '!pnpm', '!npm', '!yarn'], |
70 | | - matchUpdateTypes: ['digest', 'patch', 'minor'], |
71 | | - matchManagers: ['npm'], |
| 72 | + groupName: "all non-major dependencies", |
| 73 | + matchDepNames: ["*", "!node", "!pnpm", "!npm", "!yarn"], |
| 74 | + matchUpdateTypes: ["digest", "patch", "minor"], |
| 75 | + matchManagers: ["npm"], |
72 | 76 | }, |
73 | 77 |
|
74 | 78 | // ============================================================================ |
|
83 | 87 |
|
84 | 88 | // Group Bazel updates |
85 | 89 | { |
86 | | - groupName: 'bazel dependencies', |
87 | | - matchManagers: ['bazel', 'bazel-module'], |
| 90 | + groupName: "bazel dependencies", |
| 91 | + matchManagers: ["bazel", "bazel-module"], |
88 | 92 | }, |
89 | 93 |
|
90 | 94 | // Group GitHub Actions workflow |
91 | 95 | { |
92 | | - groupName: 'all github actions', |
93 | | - matchManagers: ['github-actions'], |
| 96 | + groupName: "all github actions", |
| 97 | + matchManagers: ["github-actions"], |
94 | 98 | }, |
95 | 99 |
|
96 | 100 | // ============================================================================ |
|
100 | 104 | // Group updates related to Angular ecosystem across repositories |
101 | 105 | { |
102 | 106 | enabled: true, // Enable NPM updates of cross-repo dependencies on all branches. |
103 | | - groupName: 'cross-repo angular dependencies', |
104 | | - followTag: 'next', |
| 107 | + groupName: "cross-repo angular dependencies", |
| 108 | + followTag: "next", |
105 | 109 | minimumReleaseAge: null, |
106 | 110 | separateMajorMinor: false, |
107 | | - schedule: ['* 0-22/2 * * *'], |
| 111 | + // schedule: ["* 0-22/2 * * *"], |
| 112 | + schedule: ['Every minute','every 2 hours'], |
108 | 113 | matchPackageNames: [ |
109 | | - '@angular-devkit/**', |
110 | | - '@angular/**', |
111 | | - '@schematics/**', |
112 | | - 'angular/**', |
113 | | - 'ng-packagr', |
| 114 | + "@angular-devkit/**", |
| 115 | + "@angular/**", |
| 116 | + "@schematics/**", |
| 117 | + "angular/**", |
| 118 | + "ng-packagr", |
114 | 119 | ], |
115 | 120 | }, |
116 | 121 |
|
117 | 122 | // @angular/benchpress is not released as 'next' |
118 | 123 | { |
119 | 124 | followTag: null, |
120 | | - matchDepNames: ['@angular/benchpress'], |
| 125 | + matchDepNames: ["@angular/benchpress"], |
121 | 126 | }, |
122 | 127 |
|
123 | 128 | // Disable 'next' tag tracking on non-main branches |
124 | 129 | { |
125 | | - matchBaseBranches: ['!main'], |
| 130 | + matchBaseBranches: ["!main"], |
126 | 131 | followTag: null, |
127 | 132 | }, |
128 | 133 |
|
129 | 134 | // Keep minor and patch updates separate for TypeScript |
130 | 135 | { |
131 | | - matchDepNames: ['typescript'], |
| 136 | + matchDepNames: ["typescript"], |
132 | 137 | separateMinorPatch: true, |
133 | 138 | }, |
134 | 139 |
|
135 | 140 | // Group TypeScript-related packages |
136 | 141 | { |
137 | | - groupName: 'typescript dependencies', |
138 | | - matchDepNames: ['typescript', 'tslib'], |
| 142 | + groupName: "typescript dependencies", |
| 143 | + matchDepNames: ["typescript", "tslib"], |
139 | 144 | }, |
140 | 145 |
|
141 | 146 | // Limit how many times these packages get updated (They deploy each merged PR) |
142 | 147 | { |
143 | 148 | matchDepNames: [ |
144 | | - 'github/codeql-action', |
145 | | - 'google-closure-compiler', |
146 | | - 'quicktype-core', |
147 | | - 'renovate', |
| 149 | + "github/codeql-action", |
| 150 | + "google-closure-compiler", |
| 151 | + "quicktype-core", |
| 152 | + "renovate", |
148 | 153 | ], |
149 | | - schedule: ['on sunday and wednesday'], |
| 154 | + schedule: ["on sunday and wednesday"], |
150 | 155 | }, |
151 | 156 |
|
152 | 157 | // ============================================================================ |
|
156 | 161 | // Disable updates for placeholder or 0.0.0-style versions |
157 | 162 | { |
158 | 163 | enabled: false, |
159 | | - matchCurrentVersion: '/^[~^]?0\\.0\\.0-/', |
| 164 | + matchCurrentVersion: "/^[~^]?0\\.0\\.0-/", |
160 | 165 | }, |
161 | 166 |
|
162 | 167 | // Disable major updates for specified dependencies |
163 | 168 | { |
164 | 169 | enabled: false, |
165 | 170 | matchDepNames: [ |
166 | | - '@types/node', |
167 | | - 'node', |
168 | | - 'bazel', // bazelisk bazel version |
169 | | - 'npm', |
170 | | - 'rxjs', |
171 | | - 'tslib', |
172 | | - 'yarn', |
| 171 | + "@types/node", |
| 172 | + "node", |
| 173 | + "bazel", // bazelisk bazel version |
| 174 | + "npm", |
| 175 | + "rxjs", |
| 176 | + "tslib", |
| 177 | + "yarn", |
173 | 178 | ], |
174 | | - matchUpdateTypes: ['major'], |
| 179 | + matchUpdateTypes: ["major"], |
175 | 180 | }, |
176 | 181 |
|
177 | 182 | // Disable TypeScript major and minor updates |
178 | 183 | { |
179 | 184 | enabled: false, |
180 | | - matchDepNames: ['typescript'], |
181 | | - matchUpdateTypes: ['major', 'minor'], |
| 185 | + matchDepNames: ["typescript"], |
| 186 | + matchUpdateTypes: ["major", "minor"], |
182 | 187 | }, |
183 | 188 |
|
184 | 189 | // Rule to disable major updates on branches other than 'main'. |
185 | 190 | { |
186 | 191 | enabled: false, |
187 | | - matchBaseBranches: ['!main'], |
188 | | - matchUpdateTypes: ['major'], |
| 192 | + matchBaseBranches: ["!main"], |
| 193 | + matchUpdateTypes: ["major"], |
189 | 194 | }, |
190 | 195 | ], |
191 | 196 | } |
0 commit comments