Skip to content

Release

Release #1

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
bump:
required: true
type: choice
options:
- next
- patch
- minor
- major
- prepatch
- preminor
- premajor
preid:
type: choice
required: true
default: beta
options:
- alpha
- beta
- canary
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- run: pnpm i
- run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- run: pnpm run packages:bump ${{ github.event.inputs.bump }} --yes --preid ${{ github.event.inputs.preid }}
- run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: pnpm run packages:publish --tag="${{ github.event.inputs.preid || 'latest' }}"
env:
NPM_CONFIG_PROVENANCE: true
- run: pnpm run packages:changelog:github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}