diff --git a/.github/actions/setup-cache/action.yml b/.github/actions/setup-cache/action.yml index 6a5bd983..19122e84 100644 --- a/.github/actions/setup-cache/action.yml +++ b/.github/actions/setup-cache/action.yml @@ -17,12 +17,15 @@ runs: restore-keys: | yarn-TEST_1-${{ runner.os }}- + - name: 📦 Install monorepo dependencies + run: yarn install --frozen-lockfile + - name: ♻️ Restore build cache uses: actions/cache@v3 with: - key: turbo-TEST_3-${{ runner.os }}-${{ github.sha }} + key: turbo-TEST_4-${{ runner.os }}-${{ github.sha }} restore-keys: | - turbo-TEST_3-${{ runner.os }}- + turbo-TEST_4-${{ runner.os }}- path: | node_modules/.cache/turbo packages/*/.turbo diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 306184c7..f27cd92a 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -60,9 +60,6 @@ jobs: - name: 🏗 Setup cache uses: ./.github/actions/setup-cache - - name: 📦 Install monorepo dependencies - run: yarn install --frozen-lockfile - # When coupled within the monorepo, make sure to build all packages related to the tested one - name: 🛠 Build dependencies if: ${{ !matrix.monorepo-detached }}