From 44a7eea0c230ef46fb547bfd453b16982cdbd67c Mon Sep 17 00:00:00 2001 From: Daniel Dimitrov Date: Thu, 19 Dec 2024 10:36:37 +0100 Subject: [PATCH] paths again --- .github/workflows/web-nextjs-bundle-analysis.yml | 14 ++++++++++++-- apps/web/package.json | 3 +-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/web-nextjs-bundle-analysis.yml b/.github/workflows/web-nextjs-bundle-analysis.yml index f4925d20cc..085acc4085 100644 --- a/.github/workflows/web-nextjs-bundle-analysis.yml +++ b/.github/workflows/web-nextjs-bundle-analysis.yml @@ -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 @@ -33,6 +39,7 @@ jobs: - name: Analyze bundle run: | + cd apps/web npx -p nextjs-bundle-analysis report - name: Upload bundle @@ -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<> $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 diff --git a/apps/web/package.json b/apps/web/package.json index 2592da605d..6d2cf39787 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -163,8 +163,7 @@ "budget": null, "budgetPercentIncreaseRed": 20, "minimumChangeThreshold": 0, - "showDetails": true, - "buildOutputDirectory": "apps/web/.next" + "showDetails": true }, "packageManager": "yarn@4.5.3" }