|
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 | | - // Renovate does not update Bazel lockfile for the time being. |
40 | | - // Workaround for https://github.com/renovatebot/renovate/issues/25557 |
41 | | - postUpgradeTasks: { |
42 | | - commands: [ |
43 | | - 'git restore .npmrc || true', // In case `.npmrc` avoid a hard error. |
44 | | - 'pnpm install --frozen-lockfile', |
45 | | - 'pnpm bazel mod deps --lockfile_mode=update', |
46 | | - ], |
47 | | - executionMode: 'branch', |
48 | | - }, |
49 | | - |
50 | 43 | packageRules: [ |
51 | 44 | // ============================================================================ |
52 | 45 | // GENERAL GROUPING & UPDATE BEHAVIOR |
53 | 46 | // ============================================================================ |
54 | 47 |
|
55 | 48 | // Disable 'postUpdateTasks' for changes that do not effect the BAZEL lockfile or generated files. |
56 | 49 | { |
57 | | - postUpgradeTasks: {commands: []}, |
58 | | - matchManagers: ['!npm', '!bazel', '!bazel-module', '!bazelisk'], |
| 50 | + postUpgradeTasks: { |
| 51 | + commands: [ |
| 52 | + "var" |
| 53 | + "git restore .npmrc || true", // In case `.npmrc` avoid a hard error. |
| 54 | + "pnpm install --frozen-lockfile", |
| 55 | + "pnpm bazel mod deps --lockfile_mode=update", |
| 56 | + ], |
| 57 | + executionMode: "branch", |
| 58 | + }, |
| 59 | + matchManagers: ["bazel", "bazel-module", "bazelisk"], |
59 | 60 | }, |
60 | 61 |
|
61 | 62 | // Rule to disable NPM updates on branches other than 'main'. |
62 | 63 | // But allow updating engines and packageManagers. |
63 | 64 | { |
64 | 65 | enabled: false, |
65 | | - matchBaseBranches: ['!main'], |
66 | | - matchDepNames: ['!node', '!pnpm', '!npm', '!yarn'], |
67 | | - matchManagers: ['npm'], |
| 66 | + matchBaseBranches: ["!main"], |
| 67 | + matchDepNames: ["!node", "!pnpm", "!npm", "!yarn"], |
| 68 | + matchManagers: ["npm"], |
68 | 69 | }, |
69 | 70 |
|
70 | 71 | // Group all non-major dependencies together for updates. |
71 | 72 | { |
72 | | - groupName: 'all non-major dependencies', |
73 | | - matchDepNames: ['*', '!node', '!pnpm', '!npm', '!yarn'], |
74 | | - matchUpdateTypes: ['digest', 'patch', 'minor'], |
75 | | - matchManagers: ['npm'], |
| 73 | + groupName: "all non-major dependencies", |
| 74 | + matchDepNames: ["*", "!node", "!pnpm", "!npm", "!yarn"], |
| 75 | + matchUpdateTypes: ["digest", "patch", "minor"], |
| 76 | + matchManagers: ["npm"], |
76 | 77 | }, |
77 | 78 |
|
78 | 79 | // ============================================================================ |
|
81 | 82 |
|
82 | 83 | // Group Bazel updates |
83 | 84 | { |
84 | | - groupName: 'bazel dependencies', |
85 | | - matchManagers: ['bazel', 'bazel-module'], |
| 85 | + groupName: "bazel dependencies", |
| 86 | + matchManagers: ["bazel", "bazel-module"], |
86 | 87 | }, |
87 | 88 |
|
88 | 89 | // Group GitHub Actions workflow |
89 | 90 | { |
90 | | - groupName: 'all github actions', |
91 | | - matchManagers: ['github-actions'], |
| 91 | + groupName: "all github actions", |
| 92 | + matchManagers: ["github-actions"], |
92 | 93 | }, |
93 | 94 |
|
94 | 95 | // ============================================================================ |
|
98 | 99 | // Group updates related to Angular ecosystem across repositories |
99 | 100 | { |
100 | 101 | enabled: true, // Enable NPM updates of cross-repo dependencies on all branches. |
101 | | - groupName: 'cross-repo angular dependencies', |
102 | | - followTag: 'next', |
| 102 | + groupName: "cross-repo angular dependencies", |
| 103 | + followTag: "next", |
103 | 104 | separateMajorMinor: false, |
104 | | - schedule: ['at any time'], |
| 105 | + schedule: ["at any time"], |
105 | 106 | matchPackageNames: [ |
106 | | - '@angular-devkit/**', |
107 | | - '@angular/**', |
108 | | - '@schematics/**', |
109 | | - 'angular/**', |
110 | | - 'ng-packagr', |
| 107 | + "@angular-devkit/**", |
| 108 | + "@angular/**", |
| 109 | + "@schematics/**", |
| 110 | + "angular/**", |
| 111 | + "ng-packagr", |
111 | 112 | ], |
112 | 113 | }, |
113 | 114 |
|
114 | 115 | // @angular/benchpress is not released as 'next' |
115 | 116 | { |
116 | 117 | followTag: null, |
117 | | - matchDepNames: ['@angular/benchpress'], |
| 118 | + matchDepNames: ["@angular/benchpress"], |
118 | 119 | }, |
119 | 120 |
|
120 | 121 | // Disable 'next' tag tracking on non-main branches |
121 | 122 | { |
122 | | - matchBaseBranches: ['!main'], |
| 123 | + matchBaseBranches: ["!main"], |
123 | 124 | followTag: null, |
124 | 125 | }, |
125 | 126 |
|
126 | 127 | // Keep minor and patch updates separate for TypeScript |
127 | 128 | { |
128 | | - matchDepNames: ['typescript'], |
| 129 | + matchDepNames: ["typescript"], |
129 | 130 | separateMinorPatch: true, |
130 | 131 | }, |
131 | 132 |
|
132 | 133 | // Group TypeScript-related packages |
133 | 134 | { |
134 | | - groupName: 'typescript dependencies', |
135 | | - matchDepNames: ['typescript', 'tslib'], |
| 135 | + groupName: "typescript dependencies", |
| 136 | + matchDepNames: ["typescript", "tslib"], |
136 | 137 | }, |
137 | 138 |
|
138 | 139 | // Limit how many times these packages get updated (They deploy each merged PR) |
139 | 140 | { |
140 | | - matchDepNames: ['renovate', 'quicktype-core', 'google-closure-compiler'], |
141 | | - schedule: ['on sunday and wednesday'], |
| 141 | + matchDepNames: ["renovate", "quicktype-core", "google-closure-compiler"], |
| 142 | + schedule: ["on sunday and wednesday"], |
142 | 143 | }, |
143 | 144 |
|
144 | 145 | // ============================================================================ |
|
148 | 149 | // Disable updates for placeholder or 0.0.0-style versions |
149 | 150 | { |
150 | 151 | enabled: false, |
151 | | - matchCurrentVersion: '/^[~^]?0\\.0\\.0-/', |
| 152 | + matchCurrentVersion: "/^[~^]?0\\.0\\.0-/", |
152 | 153 | }, |
153 | 154 |
|
154 | 155 | // Disable major updates for specified dependencies |
155 | 156 | { |
156 | 157 | enabled: false, |
157 | 158 | matchDepNames: [ |
158 | | - '@types/node', |
159 | | - 'node', |
160 | | - 'bazel', // bazelisk bazel version |
161 | | - 'npm', |
162 | | - 'rxjs', |
163 | | - 'tslib', |
164 | | - 'yarn', |
| 159 | + "@types/node", |
| 160 | + "node", |
| 161 | + "bazel", // bazelisk bazel version |
| 162 | + "npm", |
| 163 | + "rxjs", |
| 164 | + "tslib", |
| 165 | + "yarn", |
165 | 166 | ], |
166 | | - matchUpdateTypes: ['major'], |
| 167 | + matchUpdateTypes: ["major"], |
167 | 168 | }, |
168 | 169 |
|
169 | 170 | // Disable TypeScript major and minor updates |
170 | 171 | { |
171 | 172 | enabled: false, |
172 | | - matchDepNames: ['typescript'], |
173 | | - matchUpdateTypes: ['major', 'minor'], |
| 173 | + matchDepNames: ["typescript"], |
| 174 | + matchUpdateTypes: ["major", "minor"], |
174 | 175 | }, |
175 | 176 |
|
176 | 177 | // Rule to disable major updates on branches other than 'main'. |
177 | 178 | { |
178 | 179 | enabled: false, |
179 | | - matchBaseBranches: ['!main'], |
180 | | - matchUpdateTypes: ['major'], |
| 180 | + matchBaseBranches: ["!main"], |
| 181 | + matchUpdateTypes: ["major"], |
181 | 182 | }, |
182 | 183 | ], |
183 | 184 | } |
0 commit comments