Skip to content

Publish

Publish #6

Workflow file for this run

name: Publish
on: [workflow_dispatch]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
check-latest: true
registry-url: "https://registry.npmjs.org"
- name: Update NPM
run: npm install -g npm@latest
- name: Install dependencies
run: npm install
- name: Build
run: bun run build
- name: Publish
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}