Skip to content

Release

Release #5

Workflow file for this run

name: Release
on:
workflow_run:
workflows: ["CI"]
types:
- completed
permissions:
contents: write
id-token: write
jobs:
release:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }}
name: Release Package
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Type check
run: bun run type-check
- name: Lint
run: bun run lint
- name: Run tests
run: bun run test
- name: Build
run: bun run build
- name: Publish to npm
run: bun publish --access public --no-git-checks
env:
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true