Commit 168aa578 authored by shaw's avatar shaw
Browse files

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

parent 706af292
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment