Skip to content

Commit 574bff6

Browse files
committed
i love pnpm
1 parent fb64649 commit 574bff6

File tree

4 files changed

+2084
-2823
lines changed

4 files changed

+2084
-2823
lines changed

.github/workflows/deploy.yml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,36 @@ permissions:
1717

1818
jobs:
1919
build:
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-22.04
21+
strategy:
22+
matrix:
23+
node-version: [20]
2124
steps:
2225
- name: Checkout
2326
uses: actions/checkout@v4
2427
with:
2528
fetch-depth:
26-
27-
- name: Setup Node
29+
30+
- name: Install pnpm
31+
uses: pnpm/action-setup@v4
32+
with:
33+
version: 10
34+
35+
- name: Setup Node ${{ matrix.node-version }}
2836
uses: actions/setup-node@v4
2937
with:
30-
node-version: 20
31-
cache: npm
32-
38+
node-version: ${{ matrix.node-version }}
39+
cache: 'pnpm'
40+
3341
- name: Setup Pages
3442
uses: actions/configure-pages@v4
35-
43+
3644
- name: Install dependencies
37-
run: npm ci
38-
45+
run: pnpm install
46+
3947
- name: Build with VitePress
40-
run: npm run docs:build
41-
48+
run: pnpm run docs:build
49+
4250
- name: Upload artifact
4351
uses: actions/upload-pages-artifact@v3
4452
with:
@@ -53,4 +61,4 @@ jobs:
5361
steps:
5462
- name: Deploy to GitHub Pages
5563
id: deployment
56-
uses: actions/deploy-pages@v4
64+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)