Skip to content

Release and Publish

Release and Publish #1

Workflow file for this run

name: Release and Publish
on:
workflow_run:
workflows: ["Quality Checks"]
types:
- completed
branches: [main]
workflow_dispatch:
jobs:
release-and-publish:
name: Release and Publish
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
issues: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
registry-url: "https://registry.npmjs.org"
always-auth: true
token: ${{ secrets.NPM_TOKEN }}
- name: Install dependencies
run: npm ci
- name: Build Package
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release