CI Workflow (.github/workflows/ci.yml): - Tests on Node.js 18, 20, 22 - Runs typecheck, tests, and build on every push/PR Release Workflow (.github/workflows/release.yml): - Triggered on version tags (v*) or manual dispatch - Builds TypeScript and web frontend - Creates distributable tarball and zip - Publishes GitHub release with binaries - Optional npm publishing (requires NPM_TOKEN secret) Closes nd-27yb 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
40 lines
714 B
YAML
40 lines
714 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x, 20.x, 22.x]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Type check
|
|
run: npm run typecheck
|
|
|
|
- name: Run tests
|
|
run: npm test
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Build web frontend
|
|
run: npm run build:web
|