Skip to content

Commit d4e0449

Browse files
committed
using pnpm in github deploy action
1 parent c031762 commit d4e0449

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,21 @@ jobs:
2424
uses: actions/checkout@v4
2525
with:
2626
fetch-depth: 0 # Not needed if lastUpdated is not enabled
27-
- name: Setup Node
27+
- name: Install pnpm
28+
uses: pnpm/action-setup@v4
29+
- name: Use Node.js 20
2830
uses: actions/setup-node@v4
2931
with:
3032
node-version: 20
31-
cache: npm
33+
cache: "pnpm"
3234
- name: Setup Pages
3335
uses: actions/configure-pages@v4
3436
- name: Install dependencies
3537
working-directory: pages
36-
run: npm ci
38+
run: pnpm install --frozen-lockfile
3739
- name: Build with VitePress
3840
working-directory: pages
39-
run: npm run pages:build
41+
run: pnpm pages:build
4042
- name: Upload artifact
4143
uses: actions/upload-pages-artifact@v3
4244
with:

0 commit comments

Comments
 (0)