From 0738342cd69e237b005dd78c8ee29a4639bc272b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Fri, 14 Oct 2022 13:44:53 +0200 Subject: [PATCH] chore: add caching only root node_modules --- .github/workflows/publish.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b50779a69..67582dd05 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -39,16 +39,15 @@ jobs: with: path: | ${{ steps.yarn-cache-dir-path.outputs.dir }} + ./node_modules key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- - name: Install dependencies - if: steps.yarn-cache.outputs.cache-hit != 'true' run: yarn install --immutable - name: Build - if: steps.cache-build.outputs.cache-hit != 'true' run: yarn build:all lint: @@ -87,6 +86,7 @@ jobs: with: path: | ${{ steps.yarn-cache-dir-path.outputs.dir }} + ./node_modules key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -138,6 +138,7 @@ jobs: with: path: | ${{ steps.yarn-cache-dir-path.outputs.dir }} + ./node_modules key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -189,6 +190,7 @@ jobs: with: path: | ${{ steps.yarn-cache-dir-path.outputs.dir }} + ./node_modules key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -240,6 +242,7 @@ jobs: with: path: | ${{ steps.yarn-cache-dir-path.outputs.dir }} + ./node_modules key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -315,6 +318,7 @@ jobs: with: path: | ${{ steps.yarn-cache-dir-path.outputs.dir }} + ./node_modules key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn-