Skip to content

Publish Package

Publish Package #22

Workflow file for this run

name: Publish Package
on: workflow_dispatch
jobs:
check:
name: Check package
uses: ./.github/workflows/check.yml
publish:
name: Publish
needs: check
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
pull-requests: write
issues: write
steps:
- name: Checkout repo
uses: actions/checkout@9a9194f87191a7e9055e3e9b95b8cfb13023bb08
- name: Setup Node.js
uses: actions/setup-node@26961cf329f22f6837d5f54c3efd76b480300ace
with:
node-version: lts/*
- name: Setup Bun
uses: oven-sh/setup-bun@b9d34de66d2a7faee36a22446c434b7c959e48d2
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build package
run: bun run build
- name: Publish package
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bunx --bun semantic-release