mirror of
https://github.com/open-webui/pipelines
synced 2025-06-26 18:15:58 +00:00
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.
This commit is contained in:
29
.github/workflows/github-release.yaml
vendored
Normal file
29
.github/workflows/github-release.yaml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
Reference in New Issue
Block a user