feat(projects): packages/scripts: add command changelog,release

This commit is contained in:
Soybean
2024-01-21 18:17:11 +08:00
parent 840e7f99fc
commit dafb6fa06f
10 changed files with 291 additions and 71 deletions

View File

@@ -0,0 +1,12 @@
import { versionBump } from 'bumpp';
export async function release(execute = 'pnpm sa changelog', push = true) {
await versionBump({
files: ['**/package.json', '!**/node_modules'],
execute,
all: true,
tag: true,
commit: 'chore(projects): release v%s',
push
});
}