Skip to content

Release Workflow

Release Workflow #48

Workflow file for this run

name: Release Workflow
on:
# Triggers the workflow after the Test has completed
workflow_run:
workflows: ['Test']
types:
- completed
branches:
- master
- next
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
id-token: write # Required for OIDC trusted publishing
contents: write # Required for semantic-release to push tags and commits
issues: write # Required for semantic-release to create issues on failure
jobs:
release:
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- name: Install Deps
run: npm ci --ignore-scripts
- name: Build
run: npm run build
- name: Release to NPM
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run semantic-release