|
6 | 6 | // The config we're extending ignores test dirs, but we want to bump some fixture deps
|
7 | 7 | ignorePaths: ['**/node_modules/**'],
|
8 | 8 | 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. |
10 | 10 | {
|
11 |
| - matchFileNames: ['tests/**/fixtures/**/package.json'], |
| 11 | + matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'], |
12 | 12 | // If a fixture requires a specific framework version, never bump it.
|
13 | 13 | updatePinnedDependencies: false,
|
14 | 14 | // Always use `chore:` (since these are test fixtures), to avoid no-op releases.
|
15 | 15 | extends: [':semanticCommitTypeAll(chore)'],
|
16 | 16 | },
|
17 | 17 | {
|
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/**'], |
22 | 22 | // Override the schedule to get immediate PRs.
|
23 | 23 | schedule: null,
|
24 | 24 | // Apply a unique label so we can trigger additional workflows for these PRs.
|
|
31 | 31 | // difficult (or impossible) to implement so we just disable it entirely.
|
32 | 32 | automerge: false,
|
33 | 33 | },
|
| 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 | + }, |
34 | 56 | ],
|
35 | 57 | }
|
0 commit comments