Skip to content

Commit da9108c

Browse files
authored
Fix: Add pnpm setup action (#12)
1 parent eaca126 commit da9108c

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/deploy-to-github-pages.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,23 @@ jobs:
3535
uses: actions/setup-node@v4
3636
with:
3737
node-version: "18.x"
38-
cache: pnpm
39-
- name: Install Dependencies
38+
- name: Install pnpm
39+
uses: pnpm/action-setup@v2
40+
with:
41+
version: 8
42+
run_install: false
43+
- name: Get pnpm store directory
44+
shell: bash
45+
run: |
46+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
47+
- name: Setup pnpm cache
48+
uses: actions/cache@v3
49+
with:
50+
path: ${{ env.STORE_PATH }}
51+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
52+
restore-keys: |
53+
${{ runner.os }}-pnpm-store-
54+
- name: Install dependencies
4055
run: pnpm install
4156
- name: Build
4257
run: pnpm run build

0 commit comments

Comments
 (0)