mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-24 23:06:51 +00:00
fix: 修复了一些已知问题
This commit is contained in:
48
.github/workflows/release.yml
vendored
48
.github/workflows/release.yml
vendored
@@ -39,56 +39,10 @@ jobs:
|
|||||||
npx tsc
|
npx tsc
|
||||||
npx vite build
|
npx vite build
|
||||||
|
|
||||||
- name: Create Changelog Config
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
cat <<EOF > changelog_config.json
|
|
||||||
{
|
|
||||||
"template": "# ${{ github.ref_name }} 更新日志\n\n{{CHANGELOG}}\n\n---\n> 此更新由系统自动构建",
|
|
||||||
"categories": [
|
|
||||||
{
|
|
||||||
"title": "## 新功能",
|
|
||||||
"filter": { "pattern": "^feat", "flags": "i" }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "## 修复",
|
|
||||||
"filter": { "pattern": "^fix", "flags": "i" }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "## 性能与维护",
|
|
||||||
"filter": { "pattern": "^(chore|docs|perf|refactor|ci|style|test)", "flags": "i" }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "## 其他改动",
|
|
||||||
"filter": { "pattern": ".*", "flags": "i" }
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"ignore_labels": [],
|
|
||||||
"commitMode": true,
|
|
||||||
"empty_summary": "## 更新详情\n- 常规代码优化与维护"
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
- name: Build Changelog
|
|
||||||
id: build_changelog
|
|
||||||
uses: mikepenz/release-changelog-builder-action@v5
|
|
||||||
with:
|
|
||||||
configuration: "changelog_config.json"
|
|
||||||
outputFile: "release-notes.md"
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Check Changelog Content
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "=== RELEASE NOTES START ==="
|
|
||||||
cat release-notes.md
|
|
||||||
echo "=== RELEASE NOTES END ==="
|
|
||||||
|
|
||||||
- name: Inject Configuration
|
- name: Inject Configuration
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
npm pkg set build.releaseInfo.releaseNotesFile=release-notes.md
|
npm pkg set build.releaseInfo.releaseNotes="修复了一些已知问题"
|
||||||
|
|
||||||
- name: Package and Publish
|
- name: Package and Publish
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user