Skip to content

Release

Release #163

Workflow file for this run

name: Release
on:
# Trigger only when the build workflow succeeded on master
workflow_run:
workflows: ["CI"]
branches: [master]
types:
- completed
# Trigger semantic-release on demand
repository_dispatch:
types: [semantic-release]
jobs:
release:
name: Release
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'repository_dispatch' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release