Skip to content

Add dynamic bundle size calculations #29

Add dynamic bundle size calculations

Add dynamic bundle size calculations #29

Workflow file for this run

# `dist/index.js` is a special file in Actions.
# When you reference an action with `uses:` in a workflow,
# `index.js` is the code that will run.
# For our project, we generate this file through a build process
# from other source files.
# We need to make sure the checked-in `index.js` actually matches what we expect it to be.
name: Check dist
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
check-dist:
name: Check dist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bootstrap
- name: Rebuild the dist/ directory
run: pnpm run build
- name: Compare the expected and actual dist/ directories
run: pnpm run check-dist