@@ -58,8 +58,8 @@ jobs:
run: |
yarn --frozen-lockfile
- - name: Cache/Restore dist
- uses: actions/cache@v3
+ - name: Restore dist
+ uses: actions/cache/restore@v3
with:
path: |
**/.turbo
@@ -116,6 +116,13 @@ jobs:
isCompactMode: true
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:
@@ -38,7 +38,7 @@
},
"@growi/app#build": {
"dependsOn": ["^build", "@growi/app#styles-prebuilt"],
- "outputs": [".next/**", "config/**", "dist/**"],
+ "outputs": [".next/**", "!.next/cache/**", "dist/**"],
"outputMode": "new-only"
"@growi/slackbot-proxy#build": {