fix: 使用 corepack 启用 pnpm 替代 npm install -g

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
电摇小子
2026-06-01 11:01:37 +08:00
co-authored by Claude Opus 4.7
parent 9cd6061c0f
commit ffe797b3e4
6 changed files with 31 additions and 4 deletions
+2 -2
View File
@@ -22,8 +22,8 @@ jobs:
node-version: '20'
cache: 'pnpm'
- name: Install pnpm
run: npm install -g pnpm@7
- name: Enable pnpm via corepack
run: corepack enable && corepack prepare pnpm@7 --activate
- name: Install Dependencies
run: pnpm install