We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd6b9af commit b218702Copy full SHA for b218702
.github/workflows/release.yml
@@ -88,21 +88,10 @@ jobs:
88
89
- name: 生成变更日志
90
id: changelog
91
- run: |
92
- # 获取上一个标签
93
- PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
94
-
95
- if [ -z "$PREV_TAG" ]; then
96
- # 如果没有上一个标签,获取所有提交
97
- CHANGELOG=$(git log --pretty=format:"- %s (%h)" --no-merges)
98
- else
99
- # 获取两个标签之间的提交
100
- CHANGELOG=$(git log ${PREV_TAG}..HEAD --pretty=format:"- %s (%h)" --no-merges)
101
- fi
102
103
- # 保存到文件以避免特殊字符问题
104
- echo "$CHANGELOG" > changelog.txt
105
- echo "changelog_file=changelog.txt" >> $GITHUB_OUTPUT
+ run: npx changelogithub
+ continue-on-error: true
+ env:
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
106
107
- name: 发布到 npm
108
run: pnpm publish --no-git-checks
0 commit comments