mirror of
https://github.com/open-webui/pipelines
synced 2025-06-26 18:15:58 +00:00
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.
30 lines
608 B
YAML
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
|