Skip to content

Commit 401fa09

Browse files
chore: cache pnpm packages
1 parent f2d3ae2 commit 401fa09

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,16 @@ jobs:
4141
- uses: pnpm/action-setup@v2
4242
with:
4343
version: latest
44+
- name: Get pnpm store directory
45+
shell: bash
46+
run: |
47+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
48+
- uses: actions/cache@v3
49+
name: Setup pnpm cache
50+
with:
51+
path: ${{ env.STORE_PATH }}
52+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
53+
restore-keys: |
54+
${{ runner.os }}-pnpm-store-
4455
- name: Build and test node
4556
run: deno task npm 0.0.0

0 commit comments

Comments
 (0)