Skip to content
Draft
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
12 changes: 8 additions & 4 deletions .github/workflows/aat-reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ jobs:
shard: [1, 2, 3, 4, 5, 6, 7, 8]
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'pnpm'
- name: Set up turbo cache
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
with:
Expand All @@ -33,7 +35,7 @@ jobs:
${{ runner.os }}-turbo-${{ github.job }}-
${{ runner.os }}-turbo-
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Build storybook
run: npx turbo run build:storybook
- name: Run storybook
Expand Down Expand Up @@ -67,13 +69,15 @@ jobs:
needs: aat-runner
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version: 24.15.0
cache: 'npm'
cache: 'pnpm'
- name: install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: download all reports
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/assign_release_conductor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: pnpm install --frozen-lockfile
- uses: ./.github/actions/pagerduty
id: pagerduty
with:
Expand Down
42 changes: 28 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'pnpm'
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Check for unformatted files
run: npm run format:diff

Expand All @@ -35,13 +37,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'pnpm'
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Lint JavaScript
run: npm run lint
- name: Lint CSS
Expand All @@ -62,11 +66,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'pnpm'
- name: Set up turbo cache
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
with:
Expand All @@ -77,7 +83,7 @@ jobs:
${{ runner.os }}-turbo-${{ github.job }}-
${{ runner.os }}-turbo-
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- if: ${{ matrix.react-version == 'react-19' }}
run: node script/setup-react-19.mts
- name: Build
Expand All @@ -97,11 +103,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'pnpm'
- name: Set up turbo cache
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
with:
Expand All @@ -112,7 +120,7 @@ jobs:
${{ runner.os }}-turbo-${{ github.job }}-
${{ runner.os }}-turbo-
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- if: ${{ matrix.react-version == 'react-19' }}
run: node script/setup-react-19.mts
- name: Build project
Expand All @@ -131,11 +139,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'pnpm'
- name: Set up turbo cache
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
with:
Expand All @@ -146,7 +156,7 @@ jobs:
${{ runner.os }}-turbo-${{ github.job }}-
${{ runner.os }}-turbo-
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- if: ${{ matrix.react-version == 'react-19' }}
run: node script/setup-react-19.mts
- name: Build
Expand All @@ -158,11 +168,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'pnpm'
- name: Set up turbo cache
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
with:
Expand All @@ -173,7 +185,7 @@ jobs:
${{ runner.os }}-turbo-${{ github.job }}-
${{ runner.os }}-turbo-
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Build storybook to generate story IDs
run: npx turbo run build:storybook --filter=@primer/react
- name: Build components.json
Expand All @@ -188,11 +200,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'pnpm'
- name: Set up turbo cache
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
with:
Expand All @@ -203,7 +217,7 @@ jobs:
${{ runner.os }}-turbo-${{ github.job }}-
${{ runner.os }}-turbo-
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Build
run: npm run build
- name: Get export sizes
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/codescan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10

- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4

- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'pnpm'
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- uses: actions/github-script@5c56fde4671bc2d3592fb0f2c5b5bab9ddae03b1
id: file-counts
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'pnpm'
- name: Set up turbo cache
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
with:
Expand All @@ -22,7 +24,7 @@ jobs:
restore-keys: |
${{ runner.os }}-turbo-
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Build
run: npm run build
- name: Setup Playwright
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/deploy_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'pnpm'
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Build docs preview
run: npm run build:docs:preview
- name: Download VRT reports
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/deploy_preview_forks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'pnpm'
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Build docs preview
run: npm run build:docs:preview
- name: Download VRT reports
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ jobs:
gh_token: ${{ secrets.GITHUB_TOKEN }}
with:
node_version: 22
install: npm ci
install: pnpm install --frozen-lockfile
build: npm run build:docs
output_dir: docs/public
16 changes: 6 additions & 10 deletions .github/workflows/figma_connect_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,18 @@ jobs:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10

- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4

- name: Set up Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'

- name: Cache dependencies
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: 'pnpm'

- name: Install dependencies
run: npm i --legacy-peer-deps
run: pnpm install --frozen-lockfile

- run: cd packages/react/ && npx figma connect publish
- run: cd packages/react/ && pnpm exec figma connect publish
env:
FIGMA_ACCESS_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }}
8 changes: 6 additions & 2 deletions .github/workflows/lint-autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,20 @@ jobs:
token: ${{ steps.generate_token.outputs.token }}
fetch-depth: 0

- name: Set up pnpm
if: steps.check_jobs.outputs.should_fix == 'true' && steps.pr.outputs.head_ref != ''
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4

- name: Set up Node.js
if: steps.check_jobs.outputs.should_fix == 'true' && steps.pr.outputs.head_ref != ''
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'pnpm'

- name: Install dependencies
if: steps.check_jobs.outputs.should_fix == 'true' && steps.pr.outputs.head_ref != ''
run: npm ci
run: pnpm install --frozen-lockfile

- name: Run format auto-fix
if: steps.check_jobs.outputs.format_failed == 'true' && steps.pr.outputs.head_ref != ''
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/migration-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'pnpm'
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Run migration script
run: node script/react-compiler-migration-status.mts >> $GITHUB_STEP_SUMMARY

ts-docgen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'pnpm'
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Build doc-gen
run: npm run build -w @primer/doc-gen
- name: Run migration script
Expand Down
Loading
Loading