Skip to content

Commit

Permalink
paths again
Browse files Browse the repository at this point in the history
  • Loading branch information
compojoom committed Dec 19, 2024
1 parent 8f6f941 commit 44a7eea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/web-nextjs-bundle-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
detached: true

- name: Install dependencies
uses: ./.github/actions/yarn

Expand All @@ -33,6 +39,7 @@ jobs:

- name: Analyze bundle
run: |
cd apps/web
npx -p nextjs-bundle-analysis report
- name: Upload bundle
Expand All @@ -51,15 +58,18 @@ jobs:

- name: Compare with base branch bundle
if: success() && github.event.number
run: ls -laR apps/web/.next/analyze/base && npx -p nextjs-bundle-analysis compare
run: |
cd apps/web
ls -laR .next/analyze/base && npx -p nextjs-bundle-analysis compare
- name: Get Comment Body
id: get-comment-body
if: success() && github.event.number
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
run: |
cd apps/web
echo "body<<EOF" >> $GITHUB_OUTPUT
echo "$(cat apps/web/.next/analyze/__bundle_analysis_comment.txt)" >> $GITHUB_OUTPUT
echo "$(cat .next/analyze/__bundle_analysis_comment.txt)" >> $GITHUB_OUTPUT
echo EOF >> $GITHUB_OUTPUT
- name: Comment
Expand Down
3 changes: 1 addition & 2 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@
"budget": null,
"budgetPercentIncreaseRed": 20,
"minimumChangeThreshold": 0,
"showDetails": true,
"buildOutputDirectory": "apps/web/.next"
"showDetails": true
},
"packageManager": "[email protected]"
}

0 comments on commit 44a7eea

Please sign in to comment.