Skip to content

Commit

Permalink
Use EskiMojo14/size-limit-action during CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Oct 2, 2024
1 parent 2ce7f2e commit 8383289
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/size.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
name: Bundle Size

on: [pull_request]
on:
pull_request:
branches:
- master

permissions:
pull-requests: write

jobs:
build:
size:
name: Check compressed size
runs-on: ubuntu-latest

env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v4
- uses: EskiMojo14/size-limit-action@v2
with:
fetch-depth: 1
- uses: preactjs/compressed-size-action@v2
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
directory: .
github_token: ${{ secrets.GITHUB_TOKEN }}
build_script: build
package_manager: yarn
size_margin: non-zero

0 comments on commit 8383289

Please sign in to comment.