Skip to content

Release

Release #124

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version_type:
description: "Version bump type (major, minor, patch, prerelease)"
required: true
default: "patch"
type: choice
options:
- patch
- minor
- major
- prerelease
jobs:
release:
runs-on: macos-latest
# Only run this workflow on main branch
if: github.ref == 'refs/heads/main'
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Lint
run: bun run lint
- name: Type check
run: bun run check
- name: Run tests
run: bun test
- name: Configure Git
run: |
git config user.name "GitHub Actions"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
bun run src/scripts/release.ts ${{ inputs.version_type }}