Skip to content

Commit ddacb65

Browse files
release.yml config
1 parent d9d4dc2 commit ddacb65

1 file changed

Lines changed: 6 additions & 21 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,23 @@
1-
name: Release & Changelog
1+
name: Create Release
22

33
on:
44
push:
55
tags:
6-
- 'v*.*.*'
6+
- 'v*.*.*' # Trigger only on version tags like v1.0.0
77

88
jobs:
99
release:
10+
name: Generate GitHub Release
1011
runs-on: ubuntu-latest
1112

1213
steps:
1314
- name: Checkout code
1415
uses: actions/checkout@v4
1516

16-
- name: Set up Node.js
17-
uses: actions/setup-node@v4
18-
with:
19-
node-version: '20'
20-
21-
- name: Install changelog CLI
22-
run: npm install -g conventional-changelog-cli
23-
24-
- name: Generate changelog
25-
run: conventional-changelog -p angular -i CHANGELOG.md -s
26-
27-
- name: Commit changelog
28-
run: |
29-
git config user.name "github-actions"
30-
git config user.email "github-actions@github.com"
31-
git add CHANGELOG.md
32-
git commit -m "chore: update changelog for ${{ github.ref_name }}"
33-
git push origin HEAD:main
17+
- name: Set up Git
18+
run: git fetch --prune --unshallow
3419

35-
- name: Read changelog for current tag
20+
- name: Extract changelog for tag
3621
id: extract_changelog
3722
run: |
3823
TAG="${GITHUB_REF#refs/tags/}"

0 commit comments

Comments
 (0)