Yuki Takei пре 3 година
родитељ
комит
07bab27d29
2 измењених фајлова са 10 додато и 3 уклоњено
  1. 9 2
      .github/workflows/reusable-app-prod.yml
  2. 1 1
      turbo.json

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

@@ -58,8 +58,8 @@ jobs:
       run: |
       run: |
         yarn --frozen-lockfile
         yarn --frozen-lockfile
 
 
-    - name: Cache/Restore dist
-      uses: actions/cache@v3
+    - name: Restore dist
+      uses: actions/cache/restore@v3
       with:
       with:
         path: |
         path: |
           **/.turbo
           **/.turbo
@@ -116,6 +116,13 @@ jobs:
         isCompactMode: true
         isCompactMode: true
         url: ${{ secrets.SLACK_WEBHOOK_URL }}
         url: ${{ secrets.SLACK_WEBHOOK_URL }}
 
 
+    - name: Cache dist
+      uses: actions/cache/save@v3
+      with:
+        path: |
+          **/.turbo
+          **/dist
+        key: dist-app-prod-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
 
 
 
 
   launch-prod:
   launch-prod:

+ 1 - 1
turbo.json

@@ -38,7 +38,7 @@
     },
     },
     "@growi/app#build": {
     "@growi/app#build": {
       "dependsOn": ["^build", "@growi/app#styles-prebuilt"],
       "dependsOn": ["^build", "@growi/app#styles-prebuilt"],
-      "outputs": [".next/**", "config/**", "dist/**"],
+      "outputs": [".next/**", "!.next/cache/**", "dist/**"],
       "outputMode": "new-only"
       "outputMode": "new-only"
     },
     },
     "@growi/slackbot-proxy#build": {
     "@growi/slackbot-proxy#build": {