File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9999 if : steps.version.outputs.should_release == 'true'
100100 run : npm pkg set version="${{ steps.version.outputs.version }}"
101101
102+ - name : Update changelog
103+ if : steps.version.outputs.should_release == 'true'
104+ run : git-cliff --tag "${{ steps.version.outputs.tag }}" --output CHANGELOG.md
105+
102106 - name : Build
103107 if : steps.version.outputs.should_release == 'true'
104108 run : pnpm run --if-present build
@@ -109,7 +113,7 @@ jobs:
109113 set -euo pipefail
110114 git config user.name "github-actions[bot]"
111115 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
112- git add package.json
116+ git add package.json CHANGELOG.md
113117 if git diff --cached --quiet; then
114118 git commit --allow-empty -m "chore(release): ${{ steps.version.outputs.tag }}"
115119 else
You can’t perform that action at this time.
0 commit comments