Analyzes each PR's impact on your app's filesize and displays it using a comment.
on:
pull_request:
permissions:
pull-requests: write # Required permission for commenting in PR
jobs:
analysis:
name: Analysis filesize
runs-on: ubuntu-latest
steps:
- name: Analysis
uses: apple-yagi/filesize-analysis@v1
with:
out_dir: "./dist" # Output directory for build
ext: "bundle.js" # If specifying multiple extension, "bundle.js|chunk.js"
github_token: ${{secrets.GITHUB_TOKEN}}