name: Bundle Size
on: [pull_request]
jobs:
build-and-size:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-node@v3
node-version-file: '.nvmrc'
- uses: preactjs/compressed-size-action@v2
repo-token: '${{ secrets.GITHUB_TOKEN }}'
pattern: '{build/**/*.js,build/**/*.css}'