From 4edd5e90bb16c99461f1c113bd5594626de0b170 Mon Sep 17 00:00:00 2001 From: Christian Emmer <10749361+emmercm@users.noreply.github.com> Date: Mon, 6 Nov 2023 20:18:36 -0800 Subject: [PATCH] CI: port Renovate changes from metalsmith-plugins (#809) --- .github/renovate.json5 | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 745d3d486..6cb5df449 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -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'], @@ -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'], @@ -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', @@ -118,7 +115,8 @@ '@types/xml2js', '@types/yargs', ], - groupName: 'dev dependencies', + // Only group non-major updates + matchUpdateTypes: ['patch', 'minor'] }, { // Group ESLint together so files can be fixed automatically @@ -126,14 +124,7 @@ '^@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