ci: bumpp and release

This commit is contained in:
JOYCEQL
2026-02-28 22:38:27 +08:00
parent 34ff7ba429
commit 950a328a7f
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -27,6 +27,9 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Create GitHub Release
run: npx changelogen --release
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
npx changelogen gh release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+1 -1
View File
@@ -1,7 +1,7 @@
import { defineConfig } from 'bumpp'
export default defineConfig({
execute: 'npx changelogen --output CHANGELOG.md',
execute: 'npx changelogen --output CHANGELOG.md && node -e "const fs=require(\'fs\'); const pkg=require(\'./package.json\'); let c=fs.readFileSync(\'CHANGELOG.md\',\'utf8\'); c=c.replace(/## v[\\d.]+...main/g, \'## v\' + pkg.version); fs.writeFileSync(\'CHANGELOG.md\', c);"',
commit: true,
tag: true,
push: false,