andresz1 / size-limit-action

Compare the real cost to run your JS app or lib to keep good performance in every pull request
ISC License
451 stars 84 forks source link

bug: can't use action w/ bun. action trying to use npm #114

Open scffs opened 9 months ago

scffs commented 9 months ago

image

yml

name: Size Limit
on:
  pull_request:
    branches:
      - master
      - main
permissions:
  pull-requests: write
jobs:
  size:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Setup Bun
        uses: oven-sh/setup-bun@v1
        with:
          bun-version: 'latest'

      - uses: andresz1/size-limit-action@v1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          package_manager: bun
          script: bun size-limit:web

Example https://github.com/Diary-SPO/test/pull/2