From 30ac891c1c56d3c36bea707db71711d77e568b3c Mon Sep 17 00:00:00 2001 From: Doug Richar Date: Fri, 18 Oct 2024 23:42:00 -0400 Subject: [PATCH] chore(renovate): update package rules and simplify config - Simplify and reorganize package rules - Adjust grouping and matching criteria for dependencies - Add weekly schedule to recommended config - Remove npm-specific configurations --- renovate.json | 86 ++++++++++++++++++++------------------------------- 1 file changed, 33 insertions(+), 53 deletions(-) diff --git a/renovate.json b/renovate.json index b2ea7eb6..5d636d55 100644 --- a/renovate.json +++ b/renovate.json @@ -1,70 +1,50 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["config:recommended"], + "extends": ["config:recommended", "schedule:weekly"], "dependencyDashboard": true, "configMigration": true, "timezone": "America/New_York", "assignees": ["pbennett"], "baseBranches": ["dev"], "separateMultipleMajor": true, - "separateMajorMinor": true, - "separateMinorPatch": false, + "minimumReleaseAge": "3 days", "ignorePaths": ["ui/.copier-answers.yml"], + "lockFileMaintenance": { + "enabled": true, + "schedule": "before 4am on Tuesday" + }, "packageRules": [ + { + "groupName": "non-major dependencies", + "matchDepTypes": ["dependencies", "devDependencies"], + "matchUpdateTypes": ["patch", "minor"], + "matchPackageNames": ["!vitest", "!@vitest/**"] + }, + { + "groupName": "Node Manager", + "matchFileNames": ["nodemgr/go.mod", "Dockerfile-nodemgr"], + "semanticCommitScope": "nodemgr" + }, + { + "groupName": "UI", + "matchFileNames": ["ui/package.json"], + "matchDepTypes": ["dependencies", "devDependencies"], + "matchPackageNames": ["!vitest", "!@vitest/**"], + "assignees": ["drichar"], + "semanticCommitScope": "ui", + "rangeStrategy": "pin" + }, + { + "groupName": "Vitest", + "matchPackageNames": ["vitest", "@vitest/**"] + }, { "matchCategories": ["node"], "enabled": false }, { - "matchFileNames": ["nodemgr/go.mod", "Dockerfile-nodemgr"], - "groupName": "Node Manager", - "semanticCommitScope": "nodemgr", - "schedule": "before 4am on Monday" + "matchDepTypes": ["optionalDependencies", "peerDependencies", "engines"], + "enabled": false } - ], - "npm": { - "additionalBranchPrefix": "{{{parentDir}}}-", - "minimumReleaseAge": "3 days", - "lockFileMaintenance": { - "enabled": true, - "schedule": "on the 1st day of the month", - "semanticCommitScope": "deps", - "additionalBranchPrefix": "" - }, - "packageRules": [ - { - "matchDepTypes": ["dependencies", "devDependencies"], - "matchUpdateTypes": ["patch", "minor"], - "groupName": "non-major dependencies" - }, - { - "matchDepTypes": ["devDependencies"], - "groupName": "ESLint/Prettier", - "matchPackageNames": ["/lint/", "/prettier/"] - }, - { - "matchFileNames": ["contracts/bootstrap/package.json"], - "semanticCommitScope": "bootstrap" - }, - { - "matchFileNames": ["ui/package.json"], - "assignees": ["drichar"], - "schedule": "on the 1st day of the month", - "semanticCommitScope": "ui", - "rangeStrategy": "pin" - }, - { - "matchPackageNames": ["vitest", "@vitest/**"], - "groupName": "Vitest" - }, - { - "matchDepTypes": [ - "optionalDependencies", - "peerDependencies", - "engines" - ], - "enabled": false - } - ] - } + ] }