From 401fa09c0ba8189426ec78b010e122dc0f157c44 Mon Sep 17 00:00:00 2001 From: James Cook Date: Tue, 26 Sep 2023 22:57:04 +0100 Subject: [PATCH] chore: cache pnpm packages --- .github/workflows/test.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2b831a4..5136aad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,5 +41,16 @@ jobs: - uses: pnpm/action-setup@v2 with: version: latest + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + - uses: actions/cache@v3 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- - name: Build and test node run: deno task npm 0.0.0 \ No newline at end of file