File tree Expand file tree Collapse file tree 5 files changed +52
-0
lines changed Expand file tree Collapse file tree 5 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : sdk/browser/package-size
2+
3+ on :
4+ pull_request :
5+ branches : [main, 'feat/**']
6+ paths-ignore :
7+ - ' **.md'
8+
9+ jobs :
10+ package-size :
11+ uses : launchdarkly/js-core/.github/workflows/package-size.yml@rlamb/sdk-167/bundle-size-report
12+ with :
13+ workspace_name : ' @launchdarkly/js-client-sdk'
14+ workspace_path : ' packages/sdk/browser'
Original file line number Diff line number Diff line change 3131 with :
3232 workspace_name : ' @launchdarkly/js-client-sdk'
3333 workspace_path : packages/sdk/browser
34+ package-size :
35+ uses : launchdarkly/js-core/.github/workflows/package-size.yml@rlamb/sdk-167/bundle-size-report
36+ with :
37+ workspace_name : ' @launchdarkly/js-client-sdk'
38+ workspace_path : ' packages/sdk/browser'
Original file line number Diff line number Diff line change 1+ name : Package size report.
2+ on :
3+ workflow_call :
4+ inputs :
5+ workspace_name :
6+ type : string
7+ description : ' Name, from the package.json, of the package to build/test.'
8+ required : true
9+ workspace_path :
10+ type : string
11+ description : ' Path to the package to release.'
12+ required : true
13+
14+ permissions :
15+ pull-requests : write
16+ jobs :
17+ size :
18+ runs-on : ubuntu-latest
19+ env :
20+ CI : 0
21+ steps :
22+ - name : Setup Yarn
23+ shell : bash
24+ run : yarn set version 3.4.1
25+ - uses : actions/checkout@v4
26+ - uses : andresz1/size-limit-action@94bc357df29c36c8f8d50ea497c3e225c3c95d1d
27+ with :
28+ directory : ${{ inputs.workspace_path }}
29+ github_token : ${{ secrets.GITHUB_TOKEN }}
30+ build_script : build-with-deps
31+ package_manager : yarn
Original file line number Diff line number Diff line change 4848 "scripts" : {
4949 "clean" : " rimraf dist" ,
5050 "build" : " tsup" ,
51+ "build-with-deps" : " yarn workspaces foreach -pR --topological-dev --from '@launchdarkly/js-client-sdk' run build" ,
5152 "lint" : " eslint . --ext .ts,.tsx" ,
5253 "prettier" : " prettier --write '**/*.@(js|ts|tsx|json|css)' --ignore-path ../../../.prettierignore" ,
5354 "test" : " npx jest --runInBand" ,
Original file line number Diff line number Diff line change 3535 "make-esm-package-json" : " echo '{\" type\" :\" module\" }' > dist/esm/package.json" ,
3636 "make-package-jsons" : " npm run make-cjs-package-json && npm run make-esm-package-json" ,
3737 "build" : " npx tsc --noEmit && rollup -c rollup.config.js && npm run make-package-jsons" ,
38+ "build-with-deps" : " yarn workspaces foreach -pR --topological-dev --from '@launchdarkly/js-client-sdk-common' run build" ,
3839 "clean" : " rimraf dist" ,
3940 "lint" : " npx eslint . --ext .ts" ,
4041 "lint:fix" : " yarn run lint -- --fix" ,
You can’t perform that action at this time.
0 commit comments