Skip to content

fix: tighten tag-value validation; auto-capture repository from GITHU… #30

fix: tighten tag-value validation; auto-capture repository from GITHU…

fix: tighten tag-value validation; auto-capture repository from GITHU… #30

Workflow file for this run

name: CI
on:
push:
branches: [trunk, main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Lint, typecheck, test, build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run lint
if: matrix.os == 'ubuntu-latest'
- run: npm run typecheck
- run: npm test
- run: npm run build
- name: Verify dist/ is in sync
if: matrix.os == 'ubuntu-latest'
shell: bash
run: |
if ! git diff --exit-code --quiet dist/; then
echo "::error::dist/ is out of sync. Run 'npm run build' and commit the result."
git --no-pager diff dist/ | head -100
exit 1
fi
audit:
name: npm audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm audit --omit=dev