Skip to content

Release

Release #32

Workflow file for this run

name: Release
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
on:
push:
branches:
- main
- alpha
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yml
secrets: inherit
release:
runs-on: ubuntu-latest
needs: build
permissions:
contents: write # publish a GitHub release and push the release commit
issues: write # comment on released issues
pull-requests: write # comment on released pull requests
id-token: write # npm provenance via OIDC
steps:
- uses: actions/checkout@v4
with:
# A PAT (or GitHub App token) is required so the release commit/tag can
# be pushed past the "changes must be made through a pull request"
# branch ruleset. The token's actor must be in the ruleset bypass list.
token: ${{ secrets.DEPLOY_PAT || github.token }}
fetch-depth: 0
fetch-tags: true
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: https://registry.npmjs.org
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build package
run: pnpm build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.DEPLOY_PAT || github.token }}
HUSKY: '0'
run: pnpm semantic-release