Skip to content

Release npm package #72

Release npm package

Release npm package #72

Workflow file for this run

name: Release npm package
on:
workflow_run:
workflows:
- CI
types:
- completed
branches:
- main
permissions:
contents: read
jobs:
release:
name: Release
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@v6
with:
fetch-depth: 0
ref: ${{ github.event.workflow_run.head_sha }}
- name: Restore main branch context for semantic-release
run: git checkout -B main ${{ github.event.workflow_run.head_sha }}
- name: Install pnpm
uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm dlx semantic-release --branches main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}