Skip to content

World Events

World Events #113

Workflow file for this run

name: Client CI
on:
pull_request:
branches: [main]
paths:
- "client/**"
jobs:
lint-and-build:
name: Lint & Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: client
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: client/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
continue-on-error: true
run: pnpm lint
- name: Fetch font
run: |
mkdir -p app/src/assets/fonts
if [ -z "$SUPABASE_URL" ] || [ -z "$SUPABASE_SERVICE_ROLE_KEY" ]; then
echo "Error: SUPABASE_URL or SUPABASE_SERVICE_ROLE_KEY secret is not set"
exit 1
fi
curl -fsS -H "Authorization: Bearer $SUPABASE_SERVICE_ROLE_KEY" \
"$SUPABASE_URL/storage/v1/object/GB%20Assets/tx-02.woff2" \
-o app/src/assets/fonts/tx-02.woff2
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
- name: Build
run: pnpm build