Skip to content

Commit c0f4e58

Browse files
committed
sad
1 parent 964fad0 commit c0f4e58

File tree

3 files changed

+84
-78
lines changed

3 files changed

+84
-78
lines changed

renovate-preset/default.json5

Lines changed: 65 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
{
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"],
44
dependencyDashboard: true,
5-
rangeStrategy: 'replace',
5+
rangeStrategy: "replace",
66
automerge: false,
77

88
// Temporary workaround for https://github.com/renovatebot/renovate/discussions/30812
99
ignoreScripts: false,
1010

1111
// 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+
],
1317
prConcurrentLimit: 8,
1418
prHourlyLimit: 4,
15-
timezone: 'America/Tijuana',
19+
timezone: "America/Tijuana",
1620

1721
// 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"],
2327

2428
lockFileMaintenance: {
2529
enabled: true,
@@ -32,47 +36,44 @@
3236

3337
// Ignored dependencies in all repositories
3438
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.
3741
],
3842

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-
5043
packageRules: [
5144
// ============================================================================
5245
// GENERAL GROUPING & UPDATE BEHAVIOR
5346
// ============================================================================
5447

5548
// Disable 'postUpdateTasks' for changes that do not effect the BAZEL lockfile or generated files.
5649
{
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"],
5960
},
6061

6162
// Rule to disable NPM updates on branches other than 'main'.
6263
// But allow updating engines and packageManagers.
6364
{
6465
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"],
6869
},
6970

7071
// Group all non-major dependencies together for updates.
7172
{
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"],
7677
},
7778

7879
// ============================================================================
@@ -81,14 +82,14 @@
8182

8283
// Group Bazel updates
8384
{
84-
groupName: 'bazel dependencies',
85-
matchManagers: ['bazel', 'bazel-module'],
85+
groupName: "bazel dependencies",
86+
matchManagers: ["bazel", "bazel-module"],
8687
},
8788

8889
// Group GitHub Actions workflow
8990
{
90-
groupName: 'all github actions',
91-
matchManagers: ['github-actions'],
91+
groupName: "all github actions",
92+
matchManagers: ["github-actions"],
9293
},
9394

9495
// ============================================================================
@@ -98,47 +99,47 @@
9899
// Group updates related to Angular ecosystem across repositories
99100
{
100101
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",
103104
separateMajorMinor: false,
104-
schedule: ['at any time'],
105+
schedule: ["at any time"],
105106
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",
111112
],
112113
},
113114

114115
// @angular/benchpress is not released as 'next'
115116
{
116117
followTag: null,
117-
matchDepNames: ['@angular/benchpress'],
118+
matchDepNames: ["@angular/benchpress"],
118119
},
119120

120121
// Disable 'next' tag tracking on non-main branches
121122
{
122-
matchBaseBranches: ['!main'],
123+
matchBaseBranches: ["!main"],
123124
followTag: null,
124125
},
125126

126127
// Keep minor and patch updates separate for TypeScript
127128
{
128-
matchDepNames: ['typescript'],
129+
matchDepNames: ["typescript"],
129130
separateMinorPatch: true,
130131
},
131132

132133
// Group TypeScript-related packages
133134
{
134-
groupName: 'typescript dependencies',
135-
matchDepNames: ['typescript', 'tslib'],
135+
groupName: "typescript dependencies",
136+
matchDepNames: ["typescript", "tslib"],
136137
},
137138

138139
// Limit how many times these packages get updated (They deploy each merged PR)
139140
{
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"],
142143
},
143144

144145
// ============================================================================
@@ -148,36 +149,36 @@
148149
// Disable updates for placeholder or 0.0.0-style versions
149150
{
150151
enabled: false,
151-
matchCurrentVersion: '/^[~^]?0\\.0\\.0-/',
152+
matchCurrentVersion: "/^[~^]?0\\.0\\.0-/",
152153
},
153154

154155
// Disable major updates for specified dependencies
155156
{
156157
enabled: false,
157158
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",
165166
],
166-
matchUpdateTypes: ['major'],
167+
matchUpdateTypes: ["major"],
167168
},
168169

169170
// Disable TypeScript major and minor updates
170171
{
171172
enabled: false,
172-
matchDepNames: ['typescript'],
173-
matchUpdateTypes: ['major', 'minor'],
173+
matchDepNames: ["typescript"],
174+
matchUpdateTypes: ["major", "minor"],
174175
},
175176

176177
// Rule to disable major updates on branches other than 'main'.
177178
{
178179
enabled: false,
179-
matchBaseBranches: ['!main'],
180-
matchUpdateTypes: ['major'],
180+
matchBaseBranches: ["!main"],
181+
matchUpdateTypes: ["major"],
181182
},
182183
],
183184
}

renovate.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

renovate.json5

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3+
baseBranches: ["main"],
4+
extends: [
5+
"github>alan-agius4/renovate-playground-git//renovate-preset/default.json5",
6+
],
7+
ignorePaths: ["pnpm-workspace.yaml", "pnpm-lock.yaml"],
8+
packageRules: [
9+
{
10+
postUpgradeTasks: {
11+
commands: [
12+
"foo",
13+
],
14+
executionMode: "branch",
15+
},
16+
matchManagers: ["bazel", "bazel-module", "bazelisk", "npm"],
17+
},
18+
],
19+
}

0 commit comments

Comments
 (0)