#!/bin/bash ## ## 版本发布脚本 ## 链接:https://jstools.dev/version-bump-prompt/ ## 使用: ./scripts/release ## ## 利用commit-and-tag-version生成changelog文档,并跳过commit、tag操作 readonly generateChangeLog='commit-and-tag-version && git add CHANGELOG.md' ## git提交信息 readonly commitInfo='chore(release): publish v%s' bumpp --preid alpha --execute="$generateChangeLog" --commit "$commitInfo" --all --tag --push