Add Expressive Code to Starlight #2480
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Size Limit | |
on: | |
pull_request: | |
branches: [main] | |
# Automatically cancel in-progress actions on the same branch | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
size-limit: | |
if: ${{ github.event.pull_request.head.repo.full_name == 'withastro/starlight' }} | |
name: Check build output is within performance budget | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v2 | |
- name: Run size-limit | |
uses: andresz1/size-limit-action@dd31dce7dcc72a041fd3e49abf0502b13fc4ce05 | |
with: | |
github_token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }} | |
build_script: 'build:examples' | |
package_manager: pnpm |