Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/.github/ISSUE_TEMPLATE/01-react-icons-bug-report.yml @microsoft/cxe-prg
/.github/ISSUE_TEMPLATE/02-react-icons-feature-request.yml @microsoft/cxe-prg
/.github/workflows/bundle-size.baseline.yml @microsoft/cxe-prg

## packages
packages/icon-app @microsoft/cxe-prg
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/bundle-size.baseline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Bundle Size Baseline

on:
push:
branches:
- main
paths:
- 'packages/react-icons/**'

jobs:
bundle-size-baseline:
if: ${{ github.repository_owner == 'microsoft' }}
runs-on: ubuntu-latest
permissions:
contents: write
actions: write

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- run: npm ci

- name: Prepare bundle size report
run: |
npm run build
npm run bundle-size
working-directory: packages/react-icons

- name: Update bundle size baseline
run: npx monosize upload-report --branch main --commit-sha local
working-directory: packages/react-icons

- name: Check for changes
id: check-changes
run: |
if git diff --quiet packages/react-icons/monosize-baseline.json; then
echo "changes=false" >> $GITHUB_OUTPUT
else
echo "changes=true" >> $GITHUB_OUTPUT
fi

- name: Commit and push baseline update
if: steps.check-changes.outputs.changes == 'true'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add packages/react-icons/monosize-baseline.json
git commit -m "chore(react-icons): update bundle size baseline [skip ci]"
git push origin HEAD:main
6 changes: 6 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ jobs:
npm run build:verify
working-directory: packages/react-icons

- name: Bundle-Size @fluentui/react-icons
run: |
npm run bundle-size
npx monosize compare-reports
working-directory: packages/react-icons

- name: Build @fluentui/react-native-icons
run: |
npm run build
Expand Down
Loading
Loading