From 61eb8c655ae37726415e38ee7e4f5eac38a191e6 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Wed, 8 Mar 2023 00:12:26 +0100 Subject: [PATCH] docs: update the caching example --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e24f1ee..1356a04 100644 --- a/README.md +++ b/README.md @@ -112,21 +112,19 @@ jobs: - uses: pnpm/action-setup@v2 name: Install pnpm - id: pnpm-install with: version: 7 run_install: false - name: Get pnpm store directory - id: pnpm-cache shell: bash run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - uses: actions/cache@v3 name: Setup pnpm cache with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + path: ${{ env.STORE_PATH }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store-