File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ # 维护 GitHub Actions 版本
4+ - package-ecosystem : " github-actions"
5+ directory : " /"
6+ schedule :
7+ interval : " monthly" # 每月检查一次,避免频繁打扰
8+ # 可选:配置提交信息前缀
9+ commit-message :
10+ prefix : " ci"
11+ - package-ecosystem : " npm"
12+ # 使用 directories 配合通配符,同时扫描根目录和 packages/apps 下的所有子包
13+ directories :
14+ - " /" # 扫描根目录 (管理开发依赖等)
15+ - " /projects/**" # 扫描 projects 目录下的所有子目录
16+ - " scripts/node" # 扫描 scripts/node 目录
17+
18+ schedule :
19+ interval : " weekly"
20+ day : " monday"
21+ time : " 09:00"
22+ timezone : " Asia/Shanghai"
23+
24+ # 针对 pnpm monorepo 的分组策略,减少 PR 数量
25+ groups :
26+ # 策略1:将所有次要版本和补丁版本的更新合并为一个 PR
27+ # 这样你每周只会收到一个包含所有非破坏性更新的大 PR
28+ all-minor-patch :
29+ patterns :
30+ - " *"
31+ update-types :
32+ - " minor"
33+ - " patch"
34+
35+ # 策略2:(可选) 也可以按功能分组,比如将所有 eslint 相关包合为一个 PR
36+ linting :
37+ patterns :
38+ - " eslint"
39+ - " eslint-*"
40+ - " @typescript-eslint/*"
41+
42+ # 忽略某些不想自动升级的包
43+ ignore :
44+ - dependency-name : " react"
45+ versions : ["^19.0.0"] # 比如暂时不想升到 React 19
You can’t perform that action at this time.
0 commit comments