Skip to content

Release

Release #20

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version:
description: "Version bump"
required: true
default: "patch"
type: choice
options:
- patch
- minor
- major
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- uses: oven-sh/setup-bun@v2
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install -g npm@latest
- run: bun install --frozen-lockfile
- name: Configure Git
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Release
working-directory: package
run: |
if [ "${{ github.ref_name }}" = "main" ]; then
bun run release --ci --increment ${{ inputs.version }}
else
bun run release --ci --increment ${{ inputs.version }} --npm.tag=legacy
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}