Skip to content

chore: release 0.2.2 #14

chore: release 0.2.2

chore: release 0.2.2 #14

Workflow file for this run

name: Publish to npm
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Check code formatting
run: bun format:check
- name: Run ESLint
run: bun lint
- name: Type check
run: bun type:check
- name: Run tests
run: bun test
- name: Build project
run: bun dist
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: npm publish --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}