diff --git a/.github/workflows/pull-request-build.yml b/.github/workflows/pull-request-build.yml index 09f100a74..b457ef58f 100644 --- a/.github/workflows/pull-request-build.yml +++ b/.github/workflows/pull-request-build.yml @@ -37,13 +37,13 @@ jobs: - name: Get Yarn cache directory id: yarn-cache-dir-path - run: echo "dir=$(yarn cache dir)" >> $GITHUB_ENV + run: echo "dir=$(yarn cache dir | tail -n 1)" >> $GITHUB_ENV - name: Use Yarn cache uses: actions/cache@v4 id: yarn-cache with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + path: ${{ env.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - name: Install package dependencies