Skip to content

Commit 29f2563

Browse files
Update deploy.yml
1 parent 1e99256 commit 29f2563

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
1717

18-
- name: Setup Node.js
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v4
20+
with:
21+
version: 10
22+
23+
- name: Use Node.js
1924
uses: actions/setup-node@v4
2025
with:
2126
node-version: 20
2227
cache: 'pnpm'
2328

24-
- name: Install pnpm
25-
run: npm install -g pnpm
26-
2729
- name: Install dependencies
2830
run: pnpm install
2931

@@ -34,5 +36,5 @@ jobs:
3436
uses: peaceiris/actions-gh-pages@v3
3537
with:
3638
github_token: ${{ secrets.GITHUB_TOKEN }}
37-
publish_dir: ./dist
39+
publish_dir: dist
3840
publish_branch: gh-pages

0 commit comments

Comments
 (0)