chore: check size ci #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Size Limit CI | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
size-check: | |
name: Check bundle size | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
- name: Install dependencies | |
run: npm install | |
- name: Run size-limit check | |
uses: andresz1/size-limit-action@v1.8.0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
build_script: check:build | |
package_manager: npm | |