|
1 | 1 | { |
2 | | - $schema: "https://docs.renovatebot.com/renovate-schema.json", |
3 | | - extends: ["github>netlify/renovate-config:default"], |
4 | | - ignorePresets: [":prHourlyLimit2"], |
5 | | - semanticCommits: "enabled", |
6 | | - ignorePaths: ["**/node_modules/**"], |
| 2 | + $schema: 'https://docs.renovatebot.com/renovate-schema.json', |
| 3 | + extends: ['github>netlify/renovate-config:default'], |
| 4 | + ignorePresets: [':prHourlyLimit2'], |
| 5 | + semanticCommits: 'enabled', |
| 6 | + // The config we're extending ignores test dirs, but we want to bump some fixture deps |
| 7 | + ignorePaths: ['**/node_modules/**'], |
7 | 8 | packageRules: [ |
| 9 | + // Since we've enabled Renovate (see above) for demo and fixture sites, adjust the config for these. |
8 | 10 | { |
9 | | - matchFileNames: ["tests/**/fixtures/**/package.json", "demo/package.json"], |
| 11 | + matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'], |
| 12 | + // If a fixture requires a specific framework version, never bump it. |
10 | 13 | updatePinnedDependencies: false, |
11 | | - extends: [":semanticCommitTypeAll(chore)"], |
| 14 | + // Always use `chore:` (since these are test fixtures), to avoid no-op releases. |
| 15 | + extends: [':semanticCommitTypeAll(chore)'], |
12 | 16 | }, |
13 | 17 | { |
14 | | - description: "Stable & unstable Angular bumps in demo and test fixtures", |
15 | | - groupName: "Angular packages", |
16 | | - matchFileNames: ["tests/**/fixtures/**/package.json", "demo/package.json"], |
17 | | - matchPackageNames: ["@angular/**", "zone.js", "@angular-devkit/**"], |
| 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 | + // Override the schedule to get immediate PRs. |
18 | 23 | schedule: null, |
19 | | - addLabels: ["bump-framework-in-fixtures"], |
| 24 | + // Apply a unique label so we can trigger additional workflows for these PRs. |
| 25 | + addLabels: ['bump-framework-in-fixtures'], |
| 26 | + // Bump even if the release isn't tagged as `latest`. |
20 | 27 | respectLatest: false, |
| 28 | + // Bump even if it's a pre-release (e.g. 1.2.3-beta.8). |
21 | 29 | ignoreUnstable: false, |
| 30 | + // Ideally we'd like to disable automerge only for unstable bumps, but this is |
| 31 | + // difficult (or impossible) to implement so we just disable it entirely. |
22 | 32 | automerge: false, |
23 | 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. |
24 | 41 | { |
25 | | - description: "Disable angular major version upgrades", |
26 | | - matchFileNames: ["tests/**/fixtures/**/package.json", "demo/package.json"], |
27 | | - matchPackageNames: ["@angular/**", "@angular-devkit/**"], |
28 | | - matchUpdateTypes: ["major"], |
| 42 | + description: 'Disable angular major version upgrades', |
| 43 | + matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'], |
| 44 | + matchPackageNames: ['@angular/**', '@angular-devkit/**'], |
| 45 | + matchUpdateTypes: ['major'], |
29 | 46 | enabled: false, |
30 | 47 | }, |
| 48 | + // zone.js is in 0.x.y version range, so we also disable minor updates for those |
31 | 49 | { |
32 | | - description: "Disable zone.js minor version upgrades in fixtures", |
33 | | - matchFileNames: ["tests/**/fixtures/**/package.json", "demo/package.json"], |
34 | | - matchPackageNames: ["zone.js"], |
35 | | - matchUpdateTypes: ["minor", "major"], |
| 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'], |
36 | 54 | enabled: false, |
37 | 55 | }, |
38 | 56 | ], |
|
0 commit comments