Skip to content

Commit 3b4c41a

Browse files
chore: move to pnpm (#817)
1 parent 856ead9 commit 3b4c41a

File tree

3 files changed

+3290
-4784
lines changed

3 files changed

+3290
-4784
lines changed

.github/workflows/deploy.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,27 @@ jobs:
2626
uses: actions/setup-node@v4
2727
with:
2828
node-version: 20
29-
cache: npm
29+
- name: Install pnpm
30+
uses: pnpm/action-setup@v2
31+
with:
32+
version: 9
33+
- name: Get pnpm store directory
34+
shell: bash
35+
run: |
36+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
37+
- name: Setup pnpm cache
38+
uses: actions/cache@v3
39+
with:
40+
path: ${{ env.STORE_PATH }}
41+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
42+
restore-keys: |
43+
${{ runner.os }}-pnpm-store-
3044
- name: Setup Pages
3145
uses: actions/configure-pages@v4
3246
- name: Install dependencies
33-
run: npm ci
47+
run: pnpm install
3448
- name: Build with VitePress
35-
run: npm run docs:build
49+
run: pnpm run docs:build
3650
- name: Upload artifact
3751
uses: actions/upload-pages-artifact@v3
3852
with:

0 commit comments

Comments
 (0)