Skip to content

Commit 210cce7

Browse files
chore(config): migrate config renovate.json5
1 parent 7dd4eb3 commit 210cce7

File tree

1 file changed

+20
-38
lines changed

1 file changed

+20
-38
lines changed

renovate.json5

Lines changed: 20 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,38 @@
11
{
2-
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3-
extends: ['github>netlify/renovate-config:default'],
4-
ignorePresets: [':prHourlyLimit2'],
5-
semanticCommits: true,
6-
// The config we're extending ignores test dirs, but we want to bump some fixture deps
7-
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+
ignorePaths: ["**/node_modules/**"],
87
packageRules: [
9-
// Since we've enabled Renovate (see above) for demo and fixture sites, adjust the config for these.
108
{
11-
matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'],
12-
// If a fixture requires a specific framework version, never bump it.
9+
matchFileNames: ["tests/**/fixtures/**/package.json", "demo/package.json"],
1310
updatePinnedDependencies: false,
14-
// Always use `chore:` (since these are test fixtures), to avoid no-op releases.
15-
extends: [':semanticCommitTypeAll(chore)'],
11+
extends: [":semanticCommitTypeAll(chore)"],
1612
},
1713
{
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.
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/**"],
2318
schedule: null,
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`.
19+
addLabels: ["bump-framework-in-fixtures"],
2720
respectLatest: false,
28-
// Bump even if it's a pre-release (e.g. 1.2.3-beta.8).
2921
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.
3222
automerge: false,
3323
},
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.
4124
{
42-
description: 'Disable angular major version upgrades',
43-
matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'],
44-
matchPackageNames: ['@angular/**', '@angular-devkit/**'],
45-
matchUpdateTypes: ['major'],
25+
description: "Disable angular major version upgrades",
26+
matchFileNames: ["tests/**/fixtures/**/package.json", "demo/package.json"],
27+
matchPackageNames: ["@angular/**", "@angular-devkit/**"],
28+
matchUpdateTypes: ["major"],
4629
enabled: false,
4730
},
48-
// zone.js is in 0.x.y version range, so we also disable minor updates for those
4931
{
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'],
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"],
5436
enabled: false,
5537
},
5638
],

0 commit comments

Comments
 (0)