Skip to content

Commit 5184d51

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

File tree

2 files changed

+11
-23
lines changed

2 files changed

+11
-23
lines changed

.github/workflows/bundle_size.yml

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,27 @@ 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

1523
runs-on: ubuntu-latest
1624

1725
steps:
18-
- uses: actions/checkout@v4
19-
with:
20-
fetch-depth: 1
21-
- uses: actions/setup-node@v4
22-
with:
23-
node-version: '22'
24-
cache: 'yarn'
25-
- name: Install packages
26-
env:
27-
YARN_ENABLE_IMMUTABLE_INSTALLS: true
28-
run: |
29-
# npm pkg delete workspaces[5]
30-
# npm pkg delete workspaces[4]
31-
# npm pkg delete workspaces[3]
32-
# npm pkg delete workspaces[1]
33-
corepack enable
34-
yarn install
35-
- name: Build packages
36-
run: |
37-
yarn workspaces foreach -Wptiv --no-private run build:lib
3826
- name: compressed-size-action
3927
uses: preactjs/compressed-size-action@v2
4028
continue-on-error: true
4129
with:
4230
repo-token: "${{ secrets.GITHUB_TOKEN }}"
43-
build-script: "build:sizecompare"
31+
build-script: "ci:build:bundlesize"
4432
pattern: "examples/test-bundlesize/dist/**/*.{js,json}"
4533
exclude: "{examples/test-bundlesize/dist/manifest.json,**/*.LICENSE.txt,**/*.map,**/node_modules/**}"
4634
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)