Skip to content

Commit 99715b2

Browse files
chore: normalize renovate dependency updates (#274)
## What and why Enable grouped monthly Renovate updates for GitHub Actions and root Yarn dependencies while preserving the repository-selected Foundry and Solidity 0.7-compatible OpenZeppelin versions. Production and development npm dependencies are kept together to minimize PR noise. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: igorroncevic <57319163+igorroncevic@users.noreply.github.com>
1 parent acb95d9 commit 99715b2

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

.github/renovate.json5

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22
// easier to maintain.
33
{
44
$schema: "https://docs.renovatebot.com/renovate-schema.json",
5-
// Disable every built-in manager (npm, dockerfile, ...) except github-actions.
6-
enabledManagers: ["github-actions"],
5+
// Enable only the package managers used by this repository.
6+
enabledManagers: ["github-actions", "npm"],
7+
npm: {
8+
managerFilePatterns: ["/^package\\.json$/"],
9+
},
10+
// Keep the Solidity 0.7-compatible OpenZeppelin release selected by this
11+
// repository; newer OpenZeppelin majors require Solidity 0.8.
12+
ignoreDeps: ["@openzeppelin/contracts"],
713
// PR titles use Conventional Commits: `deps(<action>): ...`
814
semanticCommits: "enabled",
915
semanticCommitType: "deps",
@@ -16,7 +22,7 @@
1622
// (typically major) instead of a separate minor PR.
1723
{
1824
matchManagers: ["github-actions"],
19-
schedule: ["* 0-3 1 * *"],
25+
schedule: ["* 0-3 1 * *"], // 00:00-03:59 UTC on the first day of each month
2026
minimumReleaseAge: "14 days",
2127
// Track upgrades by semver tag, but pin the resolved version to its full
2228
// commit SHA (semver tag kept as a trailing comment). Use the coerced
@@ -25,8 +31,21 @@
2531
versioning: "semver-coerced",
2632
pinDigests: true,
2733
separateMajorMinor: false,
34+
groupName: "GitHub Actions",
35+
groupSlug: "github-actions",
2836
semanticCommitScope: "{{depName}}",
2937
commitMessageTopic: "{{depName}}",
3038
},
39+
// Keep all Yarn-managed npm updates in one monthly PR.
40+
{
41+
matchManagers: ["npm"],
42+
schedule: ["* 0-3 1 * *"], // 00:00-03:59 UTC on the first day of each month
43+
minimumReleaseAge: "14 days",
44+
separateMajorMinor: false,
45+
groupName: "npm dependencies",
46+
groupSlug: "npm-dependencies",
47+
semanticCommitScope: "npm-dependencies",
48+
commitMessageTopic: "npm dependencies",
49+
},
3150
],
3251
}

0 commit comments

Comments
 (0)