Skip to content

ci: npm publish

ci: npm publish #2

Workflow file for this run

name: 🚀 Publish Package to npmjs
on:
workflow_call:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
registry-url: 'https://registry.npmjs.org'
- run: bun install
- run: bun run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}