Skip to content

Chore/minify build code #21

Chore/minify build code

Chore/minify build code #21

Workflow file for this run

name: Package Size Report
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
PNPM_VERSION: 9.12.1
jobs:
pkg-size-report:
name: Package Size Report
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
- uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
- name: Set up Bun
uses: oven-sh/setup-bun@v2
- name: Cache node_modules
uses: ./.github/actions/cache-node-modules
with:
path: "**/node_modules"
- name: Package size report
uses: preactjs/compressed-size-action@v2
with:
install-script: "pnpm install"
build-script: "build"
pattern: "./dist/*.{js}"
exclude: "{**/*.map,**/node_modules/**}"