Skip to content

Commit

Permalink
chore: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio committed Oct 17, 2024
1 parent 042980b commit 30b5c19
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/nextjs_bundle_analysis-app-router.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
with:
# if you use a custom build directory, replace all instances of `.next` in this file with your build directory
# ex: if your app builds to `dist`, replace `.next` with `dist`
path: ./projects/wp-nextjs/.next/cache
path: ./projects/wp-nextjs-app/.next/cache
# change this if you prefer a more strict cache
key: ${{ runner.os }}-build-${{ env.cache-name }}

Expand All @@ -51,15 +51,15 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: bundle
path: ./projects/wp-nextjs/.next/analyze/__bundle_analysis.json
path: ./projects/wp-nextjs-app/.next/analyze/__bundle_analysis.json

- name: Download base branch bundle stats
uses: dawidd6/action-download-artifact@v2
if: success() && github.event.number
with:
workflow: nextjs_bundle_analysis.yml
branch: ${{ github.event.pull_request.base.ref }}
path: ./projects/wp-nextjs/.next/analyze/base
path: ./projects/wp-nextjs-app/.next/analyze/base

# And here's the second place - this runs after we have both the current and
# base branch bundle stats, and will compare them to determine what changed.
Expand All @@ -76,13 +76,13 @@ jobs:
# entry in your package.json file.
- name: Compare with base branch bundle
if: success() && github.event.number
run: ls -laR ./projects/wp-nextjs/.next/analyze/base && npx -p nextjs-bundle-analysis compare
run: ls -laR ./projects/wp-nextjs-app/.next/analyze/base && npx -p nextjs-bundle-analysis compare

- name: Get comment body
id: get-comment-body
if: success() && github.event.number
run: |
body=$(cat ./projects/wp-nextjs/.next/analyze/__bundle_analysis_comment.txt)
body=$(cat ./projects/wp-nextjs-app/.next/analyze/__bundle_analysis_comment.txt)
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
Expand Down

0 comments on commit 30b5c19

Please sign in to comment.