Skip to content

2.0.5

2.0.5 #13

name: Publish to npm registry
on:
push:
tags:
- "v*"
env:
BUN_VERSION: "latest"
permissions:
contents: read
id-token: write
jobs:
npm-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run tests
run: bun run test
- name: Run checks
run: bun run check
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v4
with:
token: ${{ secrets.NPM_TOKEN }}
access: public