Navigation Menu

Skip to content

antfu/export-size-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

export-size-action

GitHub Actions for export-size, similar to size-limit-action but for each single export.


image

Usage

Add the following action inside .github/workflows/export-size.yml

name: Export Size
on:
  pull_request:
    branches:
      - main
      - master

jobs:
  size:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: antfu/export-size-action@v1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}

Monorepo

  - uses: antfu/export-size-action@v1
    with:
      github_token: ${{ secrets.GITHUB_TOKEN }}
      paths: package/core,package/foo