Skip to content

Commit 950a328

Browse files
committed
ci: bumpp and release
1 parent 34ff7ba commit 950a328

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
run: pnpm install --frozen-lockfile
2828

2929
- name: Create GitHub Release
30-
run: npx changelogen --release
30+
run: |
31+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
32+
git config --global user.name "github-actions[bot]"
33+
npx changelogen gh release
3134
env:
3235
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

bump.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from 'bumpp'
22

33
export default defineConfig({
4-
execute: 'npx changelogen --output CHANGELOG.md',
4+
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);"',
55
commit: true,
66
tag: true,
77
push: false,

0 commit comments

Comments
 (0)