Skip to content

Commit af372b4

Browse files
committed
internal: Run bundlesize on master
1 parent c31450a commit af372b4

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/bundle_size.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ on:
88
- 'packages/**'
99
- 'yarn.lock'
1010
- 'examples/test-bundlesize/**'
11-
11+
- '.github/workflows/bundle_size.yml'
12+
push:
13+
branches:
14+
- master
15+
paths:
16+
- 'packages/**'
17+
- 'yarn.lock'
18+
- 'examples/test-bundlesize/**'
19+
- '.github/workflows/bundle_size.yml'
1220
jobs:
1321
build:
1422

@@ -17,7 +25,7 @@ jobs:
1725
steps:
1826
- uses: actions/checkout@v4
1927
with:
20-
fetch-depth: 1
28+
fetch-depth: 2
2129
- uses: actions/setup-node@v4
2230
with:
2331
node-version: '22'
@@ -31,16 +39,12 @@ jobs:
3139
# npm pkg delete workspaces[3]
3240
# npm pkg delete workspaces[1]
3341
corepack enable
34-
yarn install
35-
- name: Build packages
36-
run: |
37-
yarn workspaces foreach -Wptiv --no-private run build:lib
3842
- name: compressed-size-action
3943
uses: preactjs/compressed-size-action@v2
4044
continue-on-error: true
4145
with:
4246
repo-token: "${{ secrets.GITHUB_TOKEN }}"
43-
build-script: "build:sizecompare"
47+
build-script: "ci:build:bundlesize"
4448
pattern: "examples/test-bundlesize/dist/**/*.{js,json}"
4549
exclude: "{examples/test-bundlesize/dist/manifest.json,**/*.LICENSE.txt,**/*.map,**/node_modules/**}"
4650
minimum-change-threshold: 8

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"ci:build:legacy-types": "yarn workspaces foreach -WptivR -j 10 --from @data-client/react --from @data-client/rest --from @data-client/graphql run build:legacy-types",
2525
"ci:build-test-lib": "yarn workspace @data-client/test run build:lib && yarn workspace @data-client/test run build:bundle",
2626
"ci:build:esmodule": "yarn workspaces foreach -WptivR --from @data-client/react --from @data-client/rest --from @data-client/graphql run build:lib && yarn workspace @data-client/normalizr run build:js:node && yarn workspace @data-client/endpoint run build:js:node",
27-
"ci:build:bundlesize": "yarn workspace test-bundlesize run build:sizecompare",
27+
"ci:build:bundlesize": "yarn workspaces foreach -Wptiv --no-private run build:lib && yarn workspace test-bundlesize run build:sizecompare",
2828
"build:copy:ambient": "mkdirp ./packages/endpoint/lib && copyfiles --flat ./packages/endpoint/src/schema.d.ts ./packages/endpoint/lib/ && copyfiles --flat ./packages/endpoint/src/endpoint.d.ts ./packages/endpoint/lib/ && mkdirp ./packages/rest/lib && copyfiles --flat ./packages/rest/src/RestEndpoint.d.ts ./packages/rest/lib && copyfiles --flat ./packages/rest/src/next/RestEndpoint.d.ts ./packages/rest/lib/next && mkdirp ./packages/react/lib && copyfiles --flat ./packages/react/src/server/redux/redux.d.ts ./packages/react/lib/server/redux",
2929
"copy:websitetypes": "./scripts/copywebsitetypes.sh",
3030
"test": "NODE_ENV=test NODE_OPTIONS=--experimental-vm-modules run jest",

0 commit comments

Comments
 (0)