Skip to content

Commit cd71224

Browse files
committed
fix: improve CI workflow dependency installation
- Use pnpm/action-setup for proper pnpm setup - Add Node.js setup with pnpm cache - Remove duplicate dependency installation step - Use --frozen-lockfile for consistent builds
1 parent 5018725 commit cd71224

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,18 @@ jobs:
3434
uses: actions/checkout@v4
3535
with:
3636
fetch-depth: 0
37-
- name: Install dependencies
38-
run: npm install -g pnpm && pnpm install
37+
- name: Setup pnpm
38+
uses: pnpm/action-setup@v4
39+
with:
40+
version: 8
41+
- name: Setup Node.js
42+
uses: actions/setup-node@v4
43+
with:
44+
node-version: '20'
45+
cache: 'pnpm'
3946
- name: Install dependencies and build
4047
run: |
41-
pnpm install --no-frozen-lockfile
48+
pnpm install --frozen-lockfile
4249
pnpm run build
4350
- name: Install Aliyun OSS CLI
4451
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)