Skip to content

ci: add Release workflow #1

ci: add Release workflow

ci: add Release workflow #1

Workflow file for this run

name: Release
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
release:
name: Run semantic release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_TOKEN }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: 'npm'
- name: Install dependencies
run: npm clean-install
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release