Skip to content

0.1.6

0.1.6 #13

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
check:
name: Lint · Typecheck · Test · Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci
- name: Lint & typecheck
run: npm run check
- name: Test
run: npm run test
- name: Build
run: npm run build
- name: Verify package contents
run: npm pack --dry-run
- name: Package size guard
run: |
MAX_KB=1024
SIZE=$(du -sb dist | cut -f1)
SIZE_KB=$((SIZE / 1024))
echo "Package size: ${SIZE_KB} KB (max: ${MAX_KB} KB)"
if [ "$SIZE_KB" -gt "$MAX_KB" ]; then
echo "::error::Package too large: ${SIZE_KB} KB exceeds ${MAX_KB} KB limit"
exit 1
fi