Skip to content

v1.0.2

v1.0.2 #6

Workflow file for this run

name: Publish to npm
on:
release:
types: [created]
jobs:
build:
name: Build & Test (matrix)
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm run typecheck
- run: npm run build
- run: npm test
publish-npm:
name: Publish (npm)
needs: build
runs-on: ubuntu-latest
permissions:
id-token: write # for provenance
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
cache: npm
- run: npm ci
# prepublishOnly will run (build + test + typecheck) per your package.json
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}