From 0a0c7d32d6681072cd9d59b53d686068b74c9678 Mon Sep 17 00:00:00 2001 From: iCrawl Date: Thu, 12 Jan 2023 10:54:13 +0100 Subject: [PATCH] ci: update read path for comment --- .github/workflows/nextjs-bundle-analysis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nextjs-bundle-analysis.yml b/.github/workflows/nextjs-bundle-analysis.yml index 392f58ba8..7120a1057 100644 --- a/.github/workflows/nextjs-bundle-analysis.yml +++ b/.github/workflows/nextjs-bundle-analysis.yml @@ -42,7 +42,7 @@ jobs: key: ${{ runner.os }}-build-${{ env.cache-name }} - name: Build website - run: yarn workspace @discordjs/website run build:prod + run: yarn workspace @discordjs/website run build:local - name: Analyze bundle run: npx -yes -p github:hashicorp/nextjs-bundle-analysis report @@ -63,7 +63,7 @@ jobs: - name: Compare with base branch bundle if: success() && github.event.number - run: ls -laR .next/analyze/base && npx -yes -p github:hashicorp/nextjs-bundle-analysis compare + run: ls -laR apps/website/.next/analyze/base && npx -yes -p github:hashicorp/nextjs-bundle-analysis compare - name: Get comment body id: get-comment-body @@ -73,7 +73,7 @@ jobs: result-encoding: string script: | const fs = require('fs'); - const comment = fs.readFileSync('.next/analyze/__bundle_analysis_comment.txt', 'utf8'); + const comment = fs.readFileSync('apps/website/.next/analyze/__bundle_analysis_comment.txt', 'utf8'); core.setOutput('body', comment); - name: Find Comment