Skip to content

Commit

Permalink
chore(all): Improve renovate (#23411)
Browse files Browse the repository at this point in the history
  • Loading branch information
freiksenet authored Apr 23, 2020
1 parent 2fe4071 commit a9add5e
Showing 1 changed file with 105 additions and 11 deletions.
116 changes: 105 additions & 11 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -1,25 +1,57 @@
{
extends: ["config:base", ":disablePeerDependencies"],
extends: [
":separateMajorReleases",
":combinePatchMinorReleases",
":ignoreUnstable",
":prImmediately",
":semanticPrefixFixDepsChoreOthers",
":updateNotScheduled",
":automergeDisabled",
":disablePeerDependencies",
":maintainLockFilesDisabled",
":disableRateLimiting",
],
includePaths: [
"package.json",
"packages/**",
"www/package.json",
"starters/**",
"examples/**",
],
ignorePaths: [
"**/node_modules/**",
"**/bower_components/**",
"**/vendor/**",
"**/__tests__/**",
"**/test/**",
"**/tests/**",
"**/__fixtures__/**",
],
major: {
masterIssueApproval: true,
},
masterIssue: true,
rebaseStalePrs: false,
ignoreDeps: ["react", "react-dom"],
rangeStrategy: "bump",
bumpVersion: null,
semanticCommitScope: null,
prHourlyLimit: 0,
packageRules: [
// these rules define group names
{
groupName: "packages",
paths: ["package.json", "packages/**"],
},
{
groupName: "www",
paths: ["www/package.json"],
},
{
groupName: "starters and examples",
paths: ["starters/**", "examples/**"],
},
// these rules define dependencies that we have special handling for
{
groupName: "minor updates in packages",
updateTypes: ["minor"],
excludePackageNames: [
// below is list of packages that use 0.X version range, any minor bump there can contain breaking changes, so we just ignore minor bumps for those packages and will need to bump them manually
Expand Down Expand Up @@ -47,9 +79,12 @@
"react-docgen",
],
},
// we need to replicate this so that it goes to a separate group
{
// minor updates in packages <1.0.0 - need master issue approval
// not grouped
groupName: "packages (<1.0.0 minor)",
paths: ["package.json", "packages/**"],
masterIssueApproval: true,
updateTypes: ["minor"],
packageNames: [
Expand Down Expand Up @@ -79,21 +114,80 @@
],
},
{
groupName: "patch updates in packages",
updateTypes: ["patch"],
// minor updates in packages <1.0.0 - need master issue approval
// not grouped
groupName: "www (<1.0.0 minor)",
paths: ["www/package.json"],
masterIssueApproval: true,
updateTypes: ["minor"],
packageNames: [
// below is list of packages that use 0.X version range, any minor bump there can contain breaking changes, so we just ignore minor bumps for those packages and will need to bump them manually
"@reach/skip-nav",
"@theme-ui/prism",
"@theme-ui/typography",
"axios",
"babel-preset-gatsby",
"sharp",
"gatsby-plugin-theme-ui",
"graphiql-explorer",
"guess-webpack",
"jest-silent-reporter",
"js-combinatorics",
"jscodeshift",
"mini-css-extract-plugin",
"react-refresh",
"scroll-behavior",
"theme-ui",
"webpack-stats-plugin",
"xlsx",
"zipkin",
"zipkin-transport-http",
// below is list of packages that we use alpha/beta/next/canary, where it's not really safe to bump automatically and need extra caution
"react-docgen",
],
},
{
depTypeList: ["engines"],
enabled: false,
// minor updates in packages <1.0.0 - need master issue approval
// not grouped
groupName: "starters and examples (<1.0.0 minor)",
paths: ["starters/**", "examples/**"],
masterIssueApproval: true,
updateTypes: ["minor"],
packageNames: [
// below is list of packages that use 0.X version range, any minor bump there can contain breaking changes, so we just ignore minor bumps for those packages and will need to bump them manually
"@reach/skip-nav",
"@theme-ui/prism",
"@theme-ui/typography",
"axios",
"babel-preset-gatsby",
"sharp",
"gatsby-plugin-theme-ui",
"graphiql-explorer",
"guess-webpack",
"jest-silent-reporter",
"js-combinatorics",
"jscodeshift",
"mini-css-extract-plugin",
"react-refresh",
"scroll-behavior",
"theme-ui",
"webpack-stats-plugin",
"xlsx",
"zipkin",
"zipkin-transport-http",
// below is list of packages that we use alpha/beta/next/canary, where it's not really safe to bump automatically and need extra caution
"react-docgen",
],
},
{
groupName: "updates in starters",
paths: ["starters/**"],
updateTypes: ["patch"],
depTypeList: ["engines"],
enabled: false,
},
{
groupName: "type updates",
groupName: "types",
packagePatterns: ["^@types"],
// only upgrade types with approval as they can break transitives
masterIssueApproval: true,
},
],
timezone: "GMT",
Expand Down

0 comments on commit a9add5e

Please sign in to comment.