Skip to content

i hate cicd

i hate cicd #5

Workflow file for this run

name: Publish to npm
on:
workflow_dispatch:
push:
tags:
- 'v*.*.*'
permissions:
contents: read
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 'latest'
- name: Install
run: bun install --no-progress
- name: Build
run: bun run build
- name: Publish
uses: actions/setup-node@v5
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- run: npm publish
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}