Skip to content

Fix CI tests by building before vitest runs. #3

Fix CI tests by building before vitest runs.

Fix CI tests by building before vitest runs. #3

Workflow file for this run

name: Publish to npm
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: npm ci
- name: Test
run: npm test
- name: Publish
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}