From 741451fb711232407004c52c22b20fb0d29f19ed Mon Sep 17 00:00:00 2001 From: Satont Date: Wed, 19 Jun 2024 20:33:03 +0300 Subject: [PATCH] chore: fix cache in build-and-lint action --- .github/workflows/build-and-lint.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build-and-lint.yml b/.github/workflows/build-and-lint.yml index 073844634..6e244ec31 100644 --- a/.github/workflows/build-and-lint.yml +++ b/.github/workflows/build-and-lint.yml @@ -25,6 +25,14 @@ jobs: run: | echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + - uses: pnpm/action-setup@v3 + with: + version: 9 + run_install: false + - 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: @@ -32,6 +40,8 @@ jobs: key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- + - name: Setup turborepo cache + uses: dtinth/setup-github-actions-caching-for-turbo@v1 - name: Install dependencies run: |