Skip to content

Commit e6da384

Browse files
authored
ci: disable bundle analysis for forks (#13198)
The bundle analysis action requires comment permissions which are not available to PRs from forks. This PR disables bundle analysis until we can implement this in a separate workflow as shown in [the docs here](https://github.com/exoego/esbuild-bundle-analyzer?tab=readme-ov-file#github-action-setup-for-public-repositories).
1 parent 7cd682c commit e6da384

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,8 @@ jobs:
718718
DO_NOT_TRACK: 1 # Disable Turbopack telemetry
719719

720720
- name: Analyze esbuild bundle size
721+
# Temporarily disable this for community PRs until this can be implemented in a separate workflow
722+
if: github.event.pull_request.head.repo.fork == false
721723
uses: exoego/esbuild-bundle-analyzer@v1
722724
with:
723725
metafiles: 'packages/payload/meta_index.json,packages/payload/meta_shared.json,packages/ui/meta_client.json,packages/ui/meta_shared.json,packages/next/meta_index.json,packages/richtext-lexical/meta_client.json'

0 commit comments

Comments
 (0)