diff --git a/renovate.json b/renovate.json index 69df10c93..ef5ffe05d 100644 --- a/renovate.json +++ b/renovate.json @@ -7,6 +7,7 @@ "timezone": "UTC", "automerge": false, "platformAutomerge": false, + "allowedPostUpgradeCommands": ["^npm ci && npm test -- -u$"], "packageRules": [ { "description": "Require dashboard approval for major updates", @@ -25,6 +26,15 @@ "matchPackageNames": ["/^bootstrap$/", "/^bootswatch$/"], "groupName": "bootstrap" }, + { + "description": "Update snapshots after npm upgrades", + "matchManagers": ["npm"], + "postUpgradeTasks": { + "commands": ["npm ci && npm test -- -u"], + "fileFilters": ["ui/src/**/__snapshots__/**"], + "executionMode": "branch" + } + }, { "description": "GitHub Actions", "matchManagers": ["github-actions"],