Skip to content

Commit e43d908

Browse files
authored
ci: renovate config fix (#2456)
* chore: modernize renovate config to current syntax Renovate paused PRs because auto-migrating `packagePatterns: ["*"]` + `excludePackageNames: ["typescript"]` produced the invalid `matchPackageNames: ["*", "!typescript"]` (`*` can't combine with other patterns). Replaced that rule with `matchPackageNames: ["!typescript"]` and brought the rest of the config up to current syntax to clear the remaining migration warnings: `packageFiles`->`includePaths`, `packageNames`->`matchPackageNames`, `updateTypes`->`matchUpdateTypes`, `monorepo:angularcli`->`monorepo:angular-cli`, and `major.devDependencies` restructured as a nested packageRule. * chore: require 7-day minimum release age for renovate updates Defers automated update PRs until a published version has been live for at least 7 days, reducing exposure to retracted releases and recently discovered supply-chain issues. Fixes #2451
1 parent 156cbf5 commit e43d908

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

renovate.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,30 @@
55
"baseBranches": ["master"],
66
"ignoreDeps": ["@types/node"],
77
"automerge": true,
8-
"packageFiles": ["package.json", "packages/**/package.json"],
8+
"minimumReleaseAge": "7 days",
9+
"includePaths": ["package.json", "packages/**/package.json"],
910
"major": {
10-
"devDependencies": {
11-
"enabled": false
12-
}
11+
"packageRules": [
12+
{
13+
"matchDepTypes": ["devDependencies"],
14+
"enabled": false
15+
}
16+
]
1317
},
1418
"packageRules": [
1519
{
16-
"extends": ["monorepo:angular", "monorepo:angularcli"],
20+
"extends": ["monorepo:angular", "monorepo:angular-cli"],
1721
"groupName": "@angular",
1822
"schedule": ["before 3am on the first day of the month"]
1923
},
2024
{
21-
"packageNames": ["typescript"],
25+
"matchPackageNames": ["typescript"],
26+
"matchUpdateTypes": ["patch"],
2227
"groupName": "typescript",
23-
"updateTypes": "patch",
2428
"schedule": ["before 3am on the first day of the month"]
2529
},
2630
{
27-
"packagePatterns": ["*"],
28-
"excludePackageNames": ["typescript"],
31+
"matchPackageNames": ["!typescript"],
2932
"groupName": "all dependencies",
3033
"groupSlug": "all",
3134
"schedule": ["before 3am on the first day of the month"]

0 commit comments

Comments
 (0)