1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-04-14 18:30:30 +08:00

feat: 移除release脚本和依赖,配置release命令自动化发布流程

This commit is contained in:
142vip.cn
2024-09-24 17:42:47 +08:00
parent 088927708d
commit e67c912418
3 changed files with 2101 additions and 3653 deletions

View File

@@ -21,22 +21,19 @@
"lint": "npx fa lint",
"lint:fix": "npx fa lint --fix",
"dev": "vuepress dev docs",
"build": "vuepress build docs",
"build": "vuepress build docs --clean-temp --clean-cache",
"build:proxy": "./scripts/bundle build_proxy",
"build:mark-map": "./scripts/mark-map",
"deploy:vercel": "vercel --prod"
"deploy:vercel": "vercel --prod",
"release": "npx fa release --vip"
},
"devDependencies": {
"@142vip/fairy-cli": "0.0.3-alpha.11",
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.3",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vuepress/client": "2.0.0-beta.67",
"@vuepress/plugin-register-components": "2.0.0-beta.67",
"@vuepress/utils": "2.0.0-beta.67",
"bumpp": "^9.4.0",
"commit-and-tag-version": "^11.3.0",
"enquirer": "^2.4.1",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",

5718
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,27 +0,0 @@
#!/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'
# 获取当前分支名称
current_branch=$(git rev-parse --abbrev-ref HEAD)
# 判断分支名称
if [ "$current_branch" = "next" ]; then
npx bumpp --preid alpha --execute="$generateChangeLog" --commit "$commitInfo" --all --tag --push
else
echo "当前分支是:$current_branch 版本迭代允许在next分之操作并推送到远程"
fi
## 直接快速生成CHANGELOG文档
#pnpm commit-and-tag-version