Skip to content

Publish Package

Publish Package #16

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
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build package
run: bun run build
- name: Clean up package.json
run: bun run clean-pakage-json
- name: Pack package
run: npm pack
- name: Publish package
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bunx semantic-release