Skip to content

Commit

Permalink
add action
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakeii committed May 8, 2024
1 parent c40d422 commit 89e13bb
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/compressed-size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Commercial Bundle Compressed Size
on:
pull_request:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up Node
uses: ./.github/actions/setup-node-env

- name: Build package
run: pnpm build

- uses: preactjs/compressed-size-action@v2
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
build-script: build
strip-hash: "dist/\\w{20}"
pattern: 'dist/**/*.js'

0 comments on commit 89e13bb

Please sign in to comment.