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,