Compute JS Bundle size
ActionsTags
(2)Github action for computing javascript bundle size.
Checkout action.yml
Please check the below code for detailed usage:
steps:
- uses: actions/checkout@master
- uses: sarthak-saxena/JSBundleSize@master
with:
bootstrap: <Command for installing dependencies ex npm install>
build_command: <Command to build/bundle code>
dist_path: <Output path for your bundle>
token: ${{ secrets.GITHUB_TOKEN }}
By default github actions work on node 12
.For a specific node version use:
- uses: actions/setup-node@v1
with:
node-version: '10.0.0'
Ex:
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: '10.0.0'
- uses: sarthak-saxena/JSBundleSize@master
with:
bootstrap: 'npm install'
build_command: 'npm run build'
dist_path: 'dist'
token: ${{ secrets.GITHUB_TOKEN }}
Also check Demo.yml for complete configuration(on using github actions)
The scripts and documentation in this project are released under the MIT License
Compute JS Bundle size is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.