Skip to content

Release

Release #23

Workflow file for this run

name: Release
on:
workflow_run:
workflows: [CI]
types: [completed]
branches: [main]
jobs:
release:
name: Release to npm
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push'
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
# Do NOT set registry-url — it writes .npmrc token config that blocks OIDC
- run: npm config set registry https://registry.npmjs.org/
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Release
id: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# npm auth handled via OIDC trusted publishing (no NPM_TOKEN needed)
run: pnpm exec semantic-release