File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Release & Changelog
1+ name : Create Release
22
33on :
44 push :
55 tags :
6- - ' v*.*.*'
6+ - ' v*.*.*' # Trigger only on version tags like v1.0.0
77
88jobs :
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/}"
You can’t perform that action at this time.
0 commit comments