fix(ci): 修复前端构建使用 pnpm 而非 npm

This commit is contained in:
shaw
2026-01-05 21:29:27 +08:00
parent 706af2920f
commit 168aa57810

View File

@@ -57,19 +57,24 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
cache: 'pnpm'
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
working-directory: frontend
- name: Build frontend
run: npm run build
run: pnpm run build
working-directory: frontend
- name: Upload frontend artifact