Skip to content

v0.1.0

v0.1.0 #4

Workflow file for this run

name: Publish Release to npm
on:
release:
types:
- created
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install
- name: Run tests and coverage
run: npm test
- name: Build the project
run: npm run build
- name: Initialize npm
run: npm ci
- name: Publish to npm
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}