Răsfoiți Sursa

enable Cache/Restore node_modules step

Yuki Takei 3 ani în urmă
părinte
comite
b165485336
1 a modificat fișierele cu 9 adăugiri și 9 ștergeri
  1. 9 9
      .github/workflows/reusable-app-prod.yml

+ 9 - 9
.github/workflows/reusable-app-prod.yml

@@ -44,15 +44,15 @@ jobs:
         rm -rf apps packages
         mv out/* .
 
-    # - name: Cache/Restore node_modules
-    #   id: cache-dependencies
-    #   uses: actions/cache@v3
-    #   with:
-    #     path: |
-    #       **/node_modules
-    #     key: node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-${{ hashFiles('**/yarn.lock') }}
-    #     restore-keys: |
-    #       node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-
+    - name: Cache/Restore node_modules
+      id: cache-dependencies
+      uses: actions/cache@v3
+      with:
+        path: |
+          **/node_modules
+        key: node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-${{ hashFiles('**/yarn.lock') }}
+        restore-keys: |
+          node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-
 
     - name: Install dependencies
       run: |