Skip to content

feat(react-headless-components-preview): add TagPicker (#36285) #1497

feat(react-headless-components-preview): add TagPicker (#36285)

feat(react-headless-components-preview): add TagPicker (#36285) #1497

name: Bundle size Base
on:
push:
branches:
- master
concurrency:
# see https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
NX_PARALLEL: 4 # ubuntu-latest = 4-core CPU / 16 GB of RAM | macos-14-xlarge (arm) = 6-core CPU / 14 GB of RAM
NX_PREFER_TS_NODE: true
NX_VERBOSE_LOGGING: true
BROWSERSLIST_IGNORE_OLD_DATA: true
jobs:
bundle-size-base:
if: ${{ github.repository_owner == 'microsoft' }}
runs-on: macos-14-xlarge
permissions:
contents: 'read'
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
cache: 'yarn'
node-version: '22'
- run: yarn install --immutable
- name: Build all packages & create reports (non-PR)
run: yarn nx run-many -t bundle-size --nxBail
- name: Extract branch name
run: |
echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
- name: Prepare report
run: |
yarn monosize upload-report --branch=$BRANCH_NAME --commit-sha ${{ github.sha }}
# Resolve the artifact name/path from monosize.config.mjs so they cannot drift
# from the value monosize-storage-git uses to read the base report.
- name: Resolve report artifact metadata
id: report
uses: actions/github-script@v8
with:
script: |
const path = require('node:path');
const { pathToFileURL } = require('node:url');
const moduleUrl = pathToFileURL(path.resolve('.github/scripts/monosize-report-artifact-meta.mjs')).href;
const { default: run } = await import(moduleUrl);
run({ core });
- name: Upload report artifact
uses: actions/upload-artifact@v6
with:
name: ${{ steps.report.outputs.name }}
if-no-files-found: error
path: ${{ steps.report.outputs.path }}