mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
ci: update read path for comment
This commit is contained in:
6
.github/workflows/nextjs-bundle-analysis.yml
vendored
6
.github/workflows/nextjs-bundle-analysis.yml
vendored
@@ -42,7 +42,7 @@ jobs:
|
|||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}
|
key: ${{ runner.os }}-build-${{ env.cache-name }}
|
||||||
|
|
||||||
- name: Build website
|
- name: Build website
|
||||||
run: yarn workspace @discordjs/website run build:prod
|
run: yarn workspace @discordjs/website run build:local
|
||||||
|
|
||||||
- name: Analyze bundle
|
- name: Analyze bundle
|
||||||
run: npx -yes -p github:hashicorp/nextjs-bundle-analysis report
|
run: npx -yes -p github:hashicorp/nextjs-bundle-analysis report
|
||||||
@@ -63,7 +63,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Compare with base branch bundle
|
- name: Compare with base branch bundle
|
||||||
if: success() && github.event.number
|
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
|
- name: Get comment body
|
||||||
id: get-comment-body
|
id: get-comment-body
|
||||||
@@ -73,7 +73,7 @@ jobs:
|
|||||||
result-encoding: string
|
result-encoding: string
|
||||||
script: |
|
script: |
|
||||||
const fs = require('fs');
|
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);
|
core.setOutput('body', comment);
|
||||||
|
|
||||||
- name: Find Comment
|
- name: Find Comment
|
||||||
|
|||||||
Reference in New Issue
Block a user