Skip to content

chore: release v0.4.3 #412

chore: release v0.4.3

chore: release v0.4.3 #412

Workflow file for this run

# Operational guide:
# When you add a new script in package.json (e.g. "build", "lint", "test", "coverage", etc.),
# add a corresponding step here to run that command in CI/CD.
# Example: if you add "coverage", add a step:
# - name: Run coverage
# run: pnpm coverage
#
# Reminder: every script that must be validated in CI/CD should have a dedicated step.
name: CI
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- '.changeset/**'
pull_request:
branches:
- main
paths-ignore:
- '.changeset/**'
jobs:
build:
runs-on: ubuntu-latest
if: "!(startsWith(github.event.head_commit.message, 'chore: release v'))"
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: '10.15.0'
- name: Ensure pnpm is available (fallback)
run: |
if ! command -v pnpm >/dev/null 2>&1; then
echo "pnpm not found in PATH; attempting to enable via corepack"
corepack enable || true
corepack prepare pnpm@10.15.0 --activate || true
fi
- name: Install dependencies
run: pnpm install
- name: Load environment variables from GitHub Secrets
run: |
echo "PAIR_ADOPTION_FOLDER=$PAIR_ADOPTION_FOLDER" >> $GITHUB_ENV
env:
PAIR_ADOPTION_FOLDER: ${{ vars.PAIR_ADOPTION_FOLDER }}
- name: Load environment variables from root .env (if present)
run: |
if [ -f .env ]; then
export $(grep -v '^#' .env | xargs)
fi
- name: Run type check
run: pnpm ts:check || echo "No ts:check script defined"
- name: Run build
run: pnpm build || echo "No build script defined"
- name: Run lint
run: pnpm lint || echo "No lint script defined"
- name: Install Playwright browsers
run: |
pnpm --filter @pair/brand exec playwright install --with-deps chromium
pnpm --filter @pair/website exec playwright install --with-deps chromium
- name: Run tests
run: pnpm test
- name: Run E2E tests
run: pnpm --filter @pair/website e2e