export-size-action
GitHub Actions for export-size, similar to size-limit-action but for each single export.
Usage
Add the following action inside .github/workflows/export-size.yml
name: Export Size
on:
pull_request:
branches: [master, develop, OTHER_BRANCHES]
jobs:
size:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: antfu/export-size-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Monorepo
- uses: antfu/export-size-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
package-paths: package/core, package/foo
Options
Environment variables
GITHUB_TOKEN
* - The GitHub token to access the repo with. You should pass insecrets.GITHUB_TOKEN
COMMENTER_TOKEN
- The GitHub token to post the size-report comment with. If this is unspecified, the comment is made by @github-actions.