Skip to content

Polish and publish 1.0.4 release #12

Polish and publish 1.0.4 release

Polish and publish 1.0.4 release #12

Workflow file for this run

name: CI
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
# Cancel superseded runs on the same ref to save CI minutes.
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build-and-test:
name: Build & test (Node ${{ matrix.node }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# The dev/test toolchain (vitest 4 via rolldown) requires Node 20+
# (it imports `styleText` from node:util, added in Node 20). The published
# CLI bundle still targets Node 18, but CI builds and tests on 20/22.
node: ["20", "22"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Typecheck
run: npm run typecheck
- name: Lint
run: npm run lint
- name: Build
run: npm run build
# The test suite is fully offline (no live AI provider calls), so no API keys are needed.
- name: Test
run: npm test