From 950a328a7f3af4651c74a199187b620300c03503 Mon Sep 17 00:00:00 2001 From: JOYCEQL <1449239013@qq.com> Date: Sat, 28 Feb 2026 22:38:27 +0800 Subject: [PATCH] ci: bumpp and release --- .github/workflows/release.yml | 5 ++++- bump.config.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 55c976e..2770863 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/bump.config.ts b/bump.config.ts index 8c5143a..774fe68 100644 --- a/bump.config.ts +++ b/bump.config.ts @@ -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,