Skip to content

Commit 69aa7f4

Browse files
committed
fix: workflow
1 parent d45f6ef commit 69aa7f4

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,21 @@ jobs:
2222
- name: Install PNPM
2323
run: npm install -g pnpm
2424

25-
- name: Install deps and build (with cache)
26-
uses: bahmutov/npm-install@v1
25+
- name: Get PNPM store directory
26+
shell: bash
27+
run: |
28+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
29+
30+
- name: Setup PNPM cache
31+
uses: actions/cache@v3
32+
with:
33+
path: ${{ env.STORE_PATH }}
34+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
35+
restore-keys: |
36+
${{ runner.os }}-pnpm-store-
37+
38+
- name: Install dependencies
39+
run: pnpm install --frozen-lockfile
2740

2841
- name: Lint
2942
run: pnpm lint

0 commit comments

Comments
 (0)