Skip to content

Bump size-limit and @size-limit/preset-small-lib #137

Bump size-limit and @size-limit/preset-small-lib

Bump size-limit and @size-limit/preset-small-lib #137

name: Check bundle size
# This workflow only supported on pull requests
on: pull_request
jobs:
# This workflow contains a single job called "size"
size-limit:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
# Using node action to manage caching node_modules
cache: 'yarn'
# The size limit github action
- name: Run size limit github action
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}