Yuki Takei 3 лет назад
Родитель
Сommit
a7f978a606
1 измененных файлов с 21 добавлено и 2 удалено
  1. 21 2
      .github/workflows/ci-app.yml

+ 21 - 2
.github/workflows/ci-app.yml

@@ -58,9 +58,8 @@ jobs:
           path: |
             **/dist
             **/types
-          key: dist-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('apps/app/package.json') }}
+          key: dist-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
           restore-keys: |
-            dist-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
             dist-${{ runner.OS }}-node${{ matrix.node-version }}-
 
       - name: Install dependencies
@@ -115,6 +114,16 @@ jobs:
             node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
             node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-
 
+      - name: Cache/Restore dist and types
+        uses: actions/cache@v3
+        with:
+          path: |
+            **/dist
+            **/types
+          key: dist-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
+          restore-keys: |
+            dist-${{ runner.OS }}-node${{ matrix.node-version }}-
+
       - name: Install dependencies
         run: |
           yarn global add turbo
@@ -178,6 +187,16 @@ jobs:
             dev-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
             dev-${{ runner.OS }}-node${{ matrix.node-version }}-
 
+      - name: Cache/Restore dist and types
+        uses: actions/cache@v3
+        with:
+          path: |
+            **/dist
+            **/types
+          key: dist-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
+          restore-keys: |
+            dist-${{ runner.OS }}-node${{ matrix.node-version }}-
+
       - name: Install dependencies
         run: |
           yarn global add turbo