Skip to content

Commit 16eb852

Browse files
committed
chore: auto-release
1 parent 389797f commit 16eb852

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/release.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
21+
- id: conventionalcommits
22+
name: Conventional Commits
23+
uses: TriPSs/conventional-changelog-action@67139193614f5b9e8db87da1bd4240922b34d765 # v6.0.0
24+
with:
25+
github-token: ${{ secrets.GITHUB_TOKEN }}
26+
skip-commit: "true"
27+
output-file: "false"
28+
create-summary: true
29+
preset: conventionalcommits
30+
31+
- name: Create Release
32+
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
with:
36+
tag_name: ${{ steps.conventionalcommits.outputs.tag }}
37+
release_name: ${{ steps.conventionalcommits.outputs.tag }}
38+
body: ${{ steps.conventionalcommits.outputs.clean_changelog }}

0 commit comments

Comments
 (0)