Skip to content

Publish via npm trusted publishing instead of a token #4

Publish via npm trusted publishing instead of a token

Publish via npm trusted publishing instead of a token #4

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: build (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- name: Typecheck
run: npm run typecheck
- name: Build
run: npm run build
- name: Smoke test (render the example invoice)
run: node dist/cli.js generate examples/invoice.toml -o smoke.pdf