name: 'PR: Compressed Size'
on:
pull_request:
types: [opened, synchronize]
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: .node-version
cache: 'yarn'
- uses: preactjs/compressed-size-action@v2
with:
pattern: './packages/cherry-markdown/dist/**/*.{js,css,d.ts}'
install-script: 'yarn --frozen-lockfile --ignore-engines'