ci: prevent @blocksuite/* packages upgraded without group (#5467)

This commit is contained in:
LongYinan 2023-12-29 10:23:56 +00:00
parent 8eda42c57f
commit 10aeefe36d
No known key found for this signature in database
GPG Key ID: 30B1140CE1C07C99

33
.github/renovate.json vendored
View File

@ -1,33 +1,26 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [ "extends": ["config:base", ":disablePeerDependencies"],
"config:base",
":preserveSemverRanges",
":disablePeerDependencies"
],
"labels": ["dependencies"], "labels": ["dependencies"],
"packageRules": [ "packageRules": [
{
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch",
"matchPackagePatterns": ["*"],
"matchUpdateTypes": ["minor", "patch"],
"excludePackagePatterns": ["^@blocksuite/"]
},
{ {
"matchPackageNames": ["napi", "napi-build", "napi-derive"], "matchPackageNames": ["napi", "napi-build", "napi-derive"],
"rangeStrategy": "replace",
"groupName": "napi-rs" "groupName": "napi-rs"
}, },
{ {
"matchPackagePatterns": ["^eslint", "^@typescript-eslint"], "matchPackagePatterns": ["^eslint", "^@typescript-eslint"],
"rangeStrategy": "replace",
"groupName": "linter" "groupName": "linter"
}, },
{ {
"matchPackagePatterns": ["^@nestjs"], "matchPackagePatterns": ["^@nestjs"],
"rangeStrategy": "replace",
"groupName": "nestjs" "groupName": "nestjs"
}, },
{ {
"matchPackagePatterns": ["^@opentelemetry"], "matchPackagePatterns": ["^@opentelemetry"],
"rangeStrategy": "replace",
"groupName": "opentelemetry" "groupName": "opentelemetry"
}, },
{ {
@ -36,16 +29,32 @@
"@prisma/instrumentation", "@prisma/instrumentation",
"prisma" "prisma"
], ],
"rangeStrategy": "replace",
"groupName": "prisma" "groupName": "prisma"
}, },
{ {
"matchPackagePatterns": ["^@electron-forge"], "matchPackagePatterns": ["^@electron-forge"],
"rangeStrategy": "replace",
"groupName": "electron-forge" "groupName": "electron-forge"
}, },
{ {
"matchPackagePatterns": ["^@blocksuite"], "matchPackagePatterns": ["^@blocksuite"],
"excludePackageNames": ["@blocksuite/icons"], "excludePackageNames": ["@blocksuite/icons"],
"rangeStrategy": "replace",
"followTag": "nightly" "followTag": "nightly"
},
{
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch",
"matchPackagePatterns": ["*"],
"rangeStrategy": "replace",
"excludePackagePatterns": ["^@blocksuite/"],
"matchUpdateTypes": ["minor", "patch"]
},
{
"matchPackagePatterns": ["*"],
"rangeStrategy": "replace",
"excludePackagePatterns": ["^@blocksuite/"]
} }
], ],
"commitMessagePrefix": "chore: ", "commitMessagePrefix": "chore: ",