Skip to content

Commit f0ce7ad

Browse files
authored
chore: don't create separate renovate PRs for angular and angular-cli (#290)
1 parent ecbdd84 commit f0ce7ad

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

renovate.json5

+28-6
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
// The config we're extending ignores test dirs, but we want to bump some fixture deps
77
ignorePaths: ['**/node_modules/**'],
88
packageRules: [
9-
// Since we've enabled Renovate (see above) for fixture sites, adjust the config for these.
9+
// Since we've enabled Renovate (see above) for demo and fixture sites, adjust the config for these.
1010
{
11-
matchFileNames: ['tests/**/fixtures/**/package.json'],
11+
matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'],
1212
// If a fixture requires a specific framework version, never bump it.
1313
updatePinnedDependencies: false,
1414
// Always use `chore:` (since these are test fixtures), to avoid no-op releases.
1515
extends: [':semanticCommitTypeAll(chore)'],
1616
},
1717
{
18-
description: 'Stable & unstable Angular bumps in test fixtures',
19-
matchFileNames: ['tests/**/fixtures/**/package.json'],
20-
// See https://docs.renovatebot.com/presets-monorepo/#monorepoangular.
21-
matchSourceUrls: ['https://github.com/angular/angular'],
18+
description: 'Stable & unstable Angular bumps in demo and test fixtures',
19+
groupName: 'Angular packages',
20+
matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'],
21+
matchPackageNames: ['@angular/**', 'zone.js', '@angular-devkit/**'],
2222
// Override the schedule to get immediate PRs.
2323
schedule: null,
2424
// Apply a unique label so we can trigger additional workflows for these PRs.
@@ -31,5 +31,27 @@
3131
// difficult (or impossible) to implement so we just disable it entirely.
3232
automerge: false,
3333
},
34+
// Angular major version updates attempt to upgrade fixtures for Angular 17, 18 etc
35+
// we never want to upgrade those, so we disable them in fixtures.
36+
// Angular major versions are being released on 6 months schedule and we will need to handle them
37+
// manually anyway (even if it's just creating test fixtures for them, without adjusting the runtime
38+
// itself)
39+
// Additionally peerDeps bumps (like typescript) make it seemingly impossible to automate this process
40+
// for demo app, so major bumps are just fully disabled.
41+
{
42+
description: 'Disable angular major version upgrades',
43+
matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'],
44+
matchPackageNames: ['@angular/**', '@angular-devkit/**'],
45+
matchUpdateTypes: ['major'],
46+
enabled: false,
47+
},
48+
// zone.js is in 0.x.y version range, so we also disable minor updates for those
49+
{
50+
description: 'Disable zone.js minor version upgrades in fixtures',
51+
matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'],
52+
matchPackageNames: ['zone.js'],
53+
matchUpdateTypes: ['minor', 'major'],
54+
enabled: false,
55+
},
3456
],
3557
}

0 commit comments

Comments
 (0)