Skip to content

Releases: sarthak-saxena/JSBundleSize

Running action on commit_id fails as octokit not configured to comment on commit

21 Apr 11:56
5c1e63b
Compare
Choose a tag to compare
3.0.0

Merge pull request #7 from sarthak-saxena/fix/running-action-on-merge…

Update documentation & typos

05 Mar 08:20
2b69ff2
Compare
Choose a tag to compare

JS bundle size

Github action for computing javascript bundle size.

How to use JSBundle Size action

Usage:

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)

License

The scripts and documentation in this project are released under the MIT License

Release v1!

05 Mar 06:07
f99680d
Compare
Choose a tag to compare

JS bundle size

Github action for computing javascript bundle size.

How to use JSBundle Size action

Usage:

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.To specify 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)

License

The scripts and documentation in this project are released under the MIT License