Skip to content

Commit

Permalink
More renovate config
Browse files Browse the repository at this point in the history
  • Loading branch information
renchap committed Aug 17, 2023
1 parent 14ef365 commit ba09d3b
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["config:recommended", ":labels(dependencies)"],
minimumReleaseAge: "3",
packageRules: [
{
// Update Github Actions and Docker images weekly
matchManagers: ["github-actions", "dockerfile", "docker-compose"],
extends: ["schedule:weekly"],
},
{
// Update devDependencies every week, with one grouped PR
matchDepTypes: "devDependencies",
matchUpdateTypes: ["patch", "minor"],
groupName: "devDependencies (non-major)",
extends: ["schedule:weekly"],
},
{
// Group all eslint-related packages with `eslint` in the same PR
matchManagers: ["npm"],
matchPackageNames: ["eslint"],
matchPackagePrefixes: ["eslint-", "@typescript-eslint/"],
matchUpdateTypes: ["patch", "minor"],
groupName: "eslint (non-major)",
},
{
// We want those packages to always have their own PR
matchManagers: ["npm"],
matchPackageNames: [
"typescript", // Typescript has code-impacting changes in minor versions
],
groupName: null, // We dont want them to belong to any group
},
{
// Update @types/* packages every week, with one grouped PR
matchPackagePrefixes: "@types/",
matchUpdateTypes: ["patch", "minor"],
groupName: "DefinitelyTyped types (non-major)",
extends: ["schedule:weekly"],
addLabels: ["typescript"],
},
],
}

0 comments on commit ba09d3b

Please sign in to comment.