Skip to content

Commit

Permalink
CI: port Renovate changes from metalsmith-plugins (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm authored Nov 7, 2023
1 parent 40d5f36 commit 4edd5e9
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@
rebaseWhen: 'conflicted', // separate PRs updating the lockfile are likely to conflict each other
updateNotScheduled: true, // default

// Allow some post-upgrade commands that may be used below
allowedPostUpgradeCommands: [
'^npm ci --ignore-scripts$',
'^npm run lint:fix$',
],

packageRules: [
{
matchCategories: ['node'],
Expand Down Expand Up @@ -89,6 +83,8 @@
// Group dependencies and their `@types/*` packages together
groupName: 'dependencies',
matchDepTypes: ['dependencies', 'devDependencies'],
// Only group non-major updates
matchUpdateTypes: ['patch', 'minor']
},
{
matchDepTypes: ['dependencies'],
Expand All @@ -104,6 +100,7 @@
{
// Group devDependencies together, minus type definitions for dependencies
// https://github.com/renovatebot/renovate/issues/519
groupName: 'dev dependencies',
matchDepTypes: ['devDependencies'],
excludePackageNames: [
'@types/7zip-min',
Expand All @@ -118,22 +115,16 @@
'@types/xml2js',
'@types/yargs',
],
groupName: 'dev dependencies',
// Only group non-major updates
matchUpdateTypes: ['patch', 'minor']
},
{
// Group ESLint together so files can be fixed automatically
matchPackagePatterns: [
'^@typescript-eslint',
'^eslint',
],
groupName: 'ESLint',
postUpgradeTasks: {
commands: [
'npm ci --ignore-scripts',
'npm run lint:fix',
],
fileFilters: ['**/*.ts']
},
groupName: 'ESLint'
},
{
// Group Jest together because of peerDependencies
Expand Down

0 comments on commit 4edd5e9

Please sign in to comment.