From cff1a753ad24aa0614f901ebcf143ece15f36a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Fri, 14 Oct 2022 13:10:30 +0200 Subject: [PATCH] chore: fix multiple paths yml syntax --- .github/workflows/publish.yml | 36 +++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bcc6f375e..de6b6cb97 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -31,13 +31,15 @@ jobs: uses: actions/cache@v3 with: path: packages/**/dist - key: ${{ runner.os }}-workspace-build + key: ${{ runner.os }}-app-build - name: Cache Yarn id: yarn-cache uses: actions/cache@v3 with: - path: [ ${{ steps.yarn-cache-dir-path.outputs.dir }}, packages/**/node_modules ] + path: | + ${{ steps.yarn-cache-dir-path.outputs.dir }} + packages/**/node_modules key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -78,13 +80,15 @@ jobs: uses: actions/cache@v3 with: path: packages/**/dist - key: ${{ runner.os }}-workspace-build + key: ${{ runner.os }}-app-build - name: Cache Yarn id: yarn-cache uses: actions/cache@v3 with: - path: [ ${{ steps.yarn-cache-dir-path.outputs.dir }}, packages/**/node_modules ] + path: | + ${{ steps.yarn-cache-dir-path.outputs.dir }} + packages/**/node_modules key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -128,13 +132,15 @@ jobs: uses: actions/cache@v3 with: path: packages/**/dist - key: ${{ runner.os }}-workspace-build + key: ${{ runner.os }}-app-build - name: Cache Yarn id: yarn-cache uses: actions/cache@v3 with: - path: [ ${{ steps.yarn-cache-dir-path.outputs.dir }}, packages/**/node_modules ] + path: | + ${{ steps.yarn-cache-dir-path.outputs.dir }} + packages/**/node_modules key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -178,13 +184,15 @@ jobs: uses: actions/cache@v3 with: path: packages/**/dist - key: ${{ runner.os }}-workspace-build + key: ${{ runner.os }}-app-build - name: Cache Yarn id: yarn-cache uses: actions/cache@v3 with: - path: [ ${{ steps.yarn-cache-dir-path.outputs.dir }}, packages/**/node_modules ] + path: | + ${{ steps.yarn-cache-dir-path.outputs.dir }} + packages/**/node_modules key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -228,13 +236,15 @@ jobs: uses: actions/cache@v3 with: path: packages/**/dist - key: ${{ runner.os }}-workspace-build + key: ${{ runner.os }}-app-build - name: Cache Yarn id: yarn-cache uses: actions/cache@v3 with: - path: [ ${{ steps.yarn-cache-dir-path.outputs.dir }}, packages/**/node_modules ] + path: | + ${{ steps.yarn-cache-dir-path.outputs.dir }} + packages/**/node_modules key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -302,13 +312,15 @@ jobs: uses: actions/cache@v3 with: path: packages/**/dist - key: ${{ runner.os }}-workspace-build + key: ${{ runner.os }}-app-build - name: Cache Yarn id: yarn-cache uses: actions/cache@v3 with: - path: [ ${{ steps.yarn-cache-dir-path.outputs.dir }}, packages/**/node_modules ] + path: | + ${{ steps.yarn-cache-dir-path.outputs.dir }} + packages/**/node_modules key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn-