1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-02-03 02:23:38 +08:00

style: 修复ci提交信息格式

This commit is contained in:
chu fan
2023-09-08 00:26:03 +08:00
parent cbd014c163
commit e1a86134f5
2 changed files with 11 additions and 9 deletions

View File

@@ -40,21 +40,23 @@ jobs:
- name: Create Release
id: create_release
uses: actions/create-release@v1
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Release ${{ github.ref }}
- Add feature A
- Fix bug B
draft: false
prerelease: false
# body: |
# Release ${{ github.ref }}
# - Add feature A
# - Fix bug B
body_path: CHANGELOG.md
## 是否为草稿、是否为预发布
draft: true
prerelease: true
- name: Upload Assets
uses: actions/upload-release-asset@v1
uses: actions/upload-release-asset@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:

View File

@@ -11,7 +11,7 @@
## 利用commit-and-tag-version生成changelog文档并跳过commit、tag操作
readonly generateChangeLog='pnpm commit-and-tag-version && git add CHANGELOG.md'
## git提交信息
readonly commitInfo='chore(release): publish v%s'
readonly commitInfo='v%s'
bumpp --preid alpha --execute="$generateChangeLog" --commit "$commitInfo" --all --tag --push