Skip to content

chore(deps): bump cross-spawn from 7.0.3 to 7.0.5 (#623) #1692

chore(deps): bump cross-spawn from 7.0.3 to 7.0.5 (#623)

chore(deps): bump cross-spawn from 7.0.3 to 7.0.5 (#623) #1692

Workflow file for this run

name: Bundle size
on:
push:
branches:
- main
pull_request:
jobs:
bundle-size:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v3
- uses: actions/setup-node@v4
with:
cache: yarn
node-version: '20'
- run: yarn install --immutable
#
# Steps for PRs
#
- name: Measure affected packages
if: ${{ github.event_name == 'pull_request' }}
run: yarn nx affected --target=bundle-size --parallel --max-parallel=2
- name: Compare results with "main" branch
if: ${{ github.event_name == 'pull_request' }}
run: |
npx monosize compare-reports --branch main --output markdown --quiet > monosize.md
- name: Save PR number
run: echo ${{ github.event.number }} > pr.txt
- uses: actions/upload-artifact@v3
if: ${{ github.event_name == 'pull_request' }}
with:
name: monosize-report
if-no-files-found: error
path: |
monosize.md
pr.txt
#
# Steps for "main" branch
#
- name: Measure all packages
if: ${{ github.event_name != 'pull_request' }}
run: yarn nx run-many --all --target=bundle-size --parallel --max-parallel=2
- name: Upload results
if: ${{ github.event_name != 'pull_request' }}
run: yarn monosize upload-report --branch main --commit-sha $GITHUB_SHA
env:
UPSTASH_WRITE_TOKEN: ${{ secrets.UPSTASH_WRITE_TOKEN }}