1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-02-03 02:23:38 +08:00
Files
408CSFamily/scripts/release
2023-09-06 19:24:23 +08:00

16 lines
535 B
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env node
/**
* 版本发布脚本
* 链接https://jstools.dev/version-bump-prompt/
* 使用: ./scripts/release
*/
const {execShell} = require("./.exec");
// 利用commit-and-tag-version生成changelog文档并跳过commit、tag操作
const generateChangeLog='pnpm commit-and-tag-version && git add CHANGELOG.md'
// git提交信息
const commitInfo='chore(release): publish v%s'
;(async ()=>await execShell(`bumpp --preid alpha --execute="${generateChangeLog}" --commit "${commitInfo}" --all --tag --push`))()