pipelines/.github/workflows/github-release.yaml
Lanhild e0fbe9cd21
refactor: add automatic releases
Add an automatic release workflow and conventional commits. The release workflow determines the
version from the type of commits and then links each commit to a changelog entry in the appropriate
section, according to the type of the latter.
2024-12-02 13:41:54 -05:00

30 lines
608 B
YAML

name: Publish GitHub release
run-name: Release by @${{ github.actor }}
on:
push:
branches:
- main
jobs:
publish-release:
permissions:
contents: write
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate release
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HUSKY: 0