File tree Expand file tree Collapse file tree 2 files changed +58
-1
lines changed Expand file tree Collapse file tree 2 files changed +58
-1
lines changed Original file line number Diff line number Diff line change 6565 # We want to ensure we have enough RAM allocated to the Node.js process
6666 # this should be a last resort in case by any chances the build memory gets too high
6767 # but in general this should never happen
68- NODE_OPTIONS : ' --max_old_space_size=4096'
68+ NODE_OPTIONS : " --max_old_space_size=4096"
6969 # We want to ensure that static exports for all locales do not occur on `pull_request` events
7070 NEXT_PUBLIC_STATIC_EXPORT_LOCALE : ${{ github.event_name == 'push' }}
71+ # See https://github.com/vercel/next.js/pull/81318
72+ TURBOPACK_STATS : 1
73+
74+ - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
75+ with :
76+ name : webpack-stats
77+ path : apps/site/.next/server/webpack-stats.json
Original file line number Diff line number Diff line change 1+ # Security Notes
2+ # Only selected Actions are allowed within this repository. Please refer to (https://github.com/nodejs/nodejs.org/settings/actions)
3+ # for the full list of available actions. If you want to add a new one, please reach out a maintainer with Admin permissions.
4+ # REVIEWERS, please always double-check security practices before merging a PR that contains Workflow changes!!
5+ # AUTHORS, please only use actions with explicit SHA references, and avoid using `@master` or `@main` references or `@version` tags.
6+
7+ name : Compare Bundle Size
8+
9+ on :
10+ # TMP, for testing
11+ pull_request :
12+ branches :
13+ - main
14+
15+ defaults :
16+ run :
17+ # This ensures that the working directory is the root of the repository
18+ working-directory : ./
19+
20+ permissions :
21+ contents : read
22+ actions : read
23+
24+ jobs :
25+ compare :
26+ name : Compare Bundle Stats
27+ runs-on : ubuntu-latest
28+
29+ steps :
30+ - name : Harden Runner
31+ uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
32+ with :
33+ egress-policy : audit
34+
35+ - uses : dawidd6/action-download-artifact@ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # v11
36+ with :
37+ name : webpack-stats
38+ path : head-stats
39+
40+ - uses : dawidd6/action-download-artifact@ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # v11
41+ with :
42+ name : webpack-stats
43+ commit : ${{ github.sha }}
44+ path : base-stats
45+
46+ - uses : github/webpack-bundlesize-compare-action@89161bb25577f08577ce053c3264c0e3b7d7558f # v2.1.0
47+ with :
48+ github-token : ${{ secrets.GITHUB_TOKEN }}
49+ current-stats-json-path : ./head-stats/stats.json
50+ base-stats-json-path : ./base-stats/stats.json
You can’t perform that action at this time.
0 commit comments