Skip to content

Commit 0e3c2b2

Browse files
devversionAndrewKushnir
authored andcommitted
ci: update renovate to update angular packages when available (angular#46437)
We recently aggressively limited Renovate to only two days and set the hourly limit to one. This resulted in e.g. Angular not being updated for quite a while now, as well as missing out on e.g. dev-infra updates which should happen as often as possible. This commit reworks the config to (1) avoid legacy syntax and (2) to update Angular-cross repo depsas often as possible. Also groups Bazel dependencies better and attempts to fix the non-working Babel dep grouping. PR Close angular#46437
1 parent e8a33e7 commit 0e3c2b2

File tree

1 file changed

+39
-52
lines changed

1 file changed

+39
-52
lines changed

renovate.json

Lines changed: 39 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"baseBranches": ["main"],
4+
"enabledManagers": ["npm", "bazel", "github-actions"],
5+
"stopUpdatingLabel": "action: merge",
26
"pinVersions": false,
3-
"semanticCommits": true,
4-
"semanticPrefix": "build",
7+
"pinDigests": true,
8+
"semanticCommits": "enabled",
9+
"semanticCommitScope": "",
10+
"semanticCommitType": "build",
511
"separateMajorMinor": false,
6-
"prHourlyLimit": 1,
7-
"stopUpdatingLabel": "action: merge",
8-
"labels": ["target: patch", "comp: build & ci", "action: review"],
12+
"prHourlyLimit": 3,
913
"timezone": "America/Tijuana",
1014
"lockFileMaintenance": {
1115
"enabled": true
1216
},
13-
"schedule": ["after 10pm every monday", "before 4am every tuesday"],
14-
"baseBranches": ["main"],
17+
"labels": ["target: patch", "comp: build & ci", "action: review"],
1518
"ignoreDeps": [
1619
"@angular/animations-12",
1720
"@angular/common-12",
@@ -37,67 +40,51 @@
3740
"selenium-webdriver",
3841
"watchr"
3942
],
40-
"packageFiles": [
41-
"WORKSPACE",
42-
"integration/bazel/WORKSPACE",
43-
"package.json",
44-
"packages/**/package.json",
45-
"aio/package.json",
46-
".github/workflows/**/*.yml"
47-
],
4843
"packageRules": [
4944
{
50-
"packagePatterns": [
51-
"^@angular/.*",
52-
"^@angular-devkit/.*",
53-
"^@schematics/.*",
54-
"angular/dev-infra"
55-
],
56-
"groupName": "angular",
57-
"pinVersions": false
45+
"matchPackagePatterns": ["*"],
46+
"matchUpdateTypes": ["minor", "patch"],
47+
"groupName": "all non-major dependencies",
48+
"schedule": ["after 10pm every monday", "before 4am every tuesday"]
5849
},
50+
5951
{
60-
"packagePatterns": ["^@babel/.*"],
61-
"groupName": "babel",
62-
"pinVersions": false
52+
"matchPackagePatterns": ["^@bazel/.*", "^build_bazel.*"],
53+
"groupName": "bazel setup",
54+
"schedule": ["at any time"]
6355
},
56+
6457
{
65-
"packagePatterns": ["^@bazel/.*", "^build_bazel.*"],
66-
"groupName": "bazel",
67-
"pinVersions": false
58+
"matchPackagePrefixes": ["@angular/", "angular/", "@angular-devkit", "@schematics/"],
59+
"followTag": "next",
60+
"groupName": "cross-repo Angular dependencies",
61+
"schedule": ["at any time"]
6862
},
63+
6964
{
70-
"packageNames": ["typescript", "rxjs", "tslib"],
71-
"separateMinorPatch": true
65+
"matchPackagePrefixes": ["@babel/"],
66+
"groupName": "babel dependencies"
7267
},
68+
7369
{
74-
"packageNames": ["typescript", "rxjs", "tslib"],
75-
"updateTypes": ["minor", "major"],
76-
"enabled": false
70+
"matchPackageNames": ["typescript", "tslib"],
71+
"groupName": "typescript dependencies"
7772
},
73+
7874
{
79-
"matchCurrentVersion": "0.0.0-PLACEHOLDER",
80-
"enabled": false
75+
"matchPaths": [".github/workflows/scorecard.yml"],
76+
"groupName": "scorecard action dependencies",
77+
"groupSlug": "scorecard-action"
8178
},
79+
8280
{
83-
"excludePackagePatterns": [
84-
"^@angular/.*",
85-
"^@angular-devkit/.*",
86-
"^@schematics/.*",
87-
"angular/dev-infra"
88-
],
89-
"matchPackagePatterns": ["*"],
90-
"matchUpdateTypes": ["minor", "patch"],
91-
"matchCurrentVersion": ">=1",
92-
"groupName": "all non-major dependencies",
93-
"groupSlug": "all-minor-patch",
94-
"schedule": ["after 1am on Thursday"]
81+
"matchPaths": ["integration/!(bazel_workspace_tests)/**"],
82+
"enabled": false
9583
},
84+
9685
{
97-
"matchPaths": [".github/workflows/scorecard.yml"],
98-
"matchPackagePatterns": ["*"],
99-
"groupName": "scorecard action dependencies",
100-
"groupSlug": "scorecard-action"
86+
"matchCurrentVersion": "0.0.0-PLACEHOLDER",
87+
"enabled": false
10188
}
10289
]
10390
}

0 commit comments

Comments
 (0)