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-