Skip to content

Convert to proper npm library package (resolves #118) #2

Convert to proper npm library package (resolves #118)

Convert to proper npm library package (resolves #118) #2

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm install --ignore-scripts
- name: Build library
run: npm run build
- name: Verify dist output
run: |
test -f dist/index.js || (echo "dist/index.js not found" && exit 1)
test -f dist/index.d.ts || (echo "dist/index.d.ts not found" && exit 1)
echo "✅ dist/ output verified"
- name: Check package contents
run: npm pack --dry-run