Skip to content

Commit 637afac

Browse files
committed
feat: 更新 sync-uuid.yml 和 backfill-contributors.mjs 脚本,添加 Node.js 20 支持,优化贡献者统计逻辑,增强数据库同步功能
1 parent 90b03db commit 637afac

File tree

2 files changed

+231
-167
lines changed

2 files changed

+231
-167
lines changed

.github/workflows/sync-uuid.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,17 @@ jobs:
2828
contents: write
2929
env:
3030
DATABASE_URL: ${{ secrets.DATABASE_URL }}
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 供脚本调用 GitHub API 提升速率
31+
GITHUB_TOKEN: ${{ secrets.GH_PAT }} # 供脚本调用 GitHub API 提升速率
3232
DOCS_DIR: app/docs
3333

3434
steps:
3535
- uses: actions/checkout@v4
3636

37+
- uses: actions/setup-node@v4
38+
with:
39+
node-version: 20
40+
cache: "pnpm" # 顺便启用 pnpm 缓存,加速
41+
3742
- uses: pnpm/action-setup@v4
3843
with:
3944
version: 9

0 commit comments

Comments
 (0)