Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
32 lines
579 B
YAML
32 lines
579 B
YAML
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Verify output exists
|
|
run: |
|
|
if [ ! -d "out" ]; then
|
|
echo "out/ not found"
|
|
exit 1
|
|
fi
|