Skip to content
Merged
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
39 changes: 30 additions & 9 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,45 @@
name: Copilot setup steps

on:
workflow_call: {}
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml

jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
# 1. Enable corepack so the declared pnpm version (packageManager field) is used
- name: Enable corepack
run: corepack enable && corepack prepare pnpm@9.15.0 --activate
# 1. Check out the repository before running any package-manager commands.
- name: Checkout repository
uses: actions/checkout@v5

# 2. Install all monorepo dependencies via pnpm workspaces
# 2. Install the declared pnpm version so pnpm is available on PATH.
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.0

# 3. Install the repository's Node.js version and enable pnpm dependency caching.
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: pnpm

# 4. Install all monorepo dependencies via pnpm workspaces.
- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

# 3. Build all workspace packages so Storybook can import them
# 5. Build all workspace packages so Storybook can import them.
- name: Build packages
run: pnpm build
run: pnpm run build

# 4. Install the Chromium browser and its OS-level deps for Playwright / test-runner
# 6. Install the Chromium browser and its OS-level deps for Playwright / test-runner.
- name: Install Playwright browsers
run: pnpm exec playwright install chromium --with-deps
Loading