镜像自地址
https://github.com/lhly/cloud-drive-renamer.git
已同步 2026-10-20 21:57:47 +08:00
chore(ci): 移除 pnpm 版本锁定并优化发布流程
这个提交包含在:
父节点
4074988612
当前提交
87e21c5277
14
.github/workflows/README.md
vendored
14
.github/workflows/README.md
vendored
@ -59,15 +59,17 @@ git push origin feature/my-feature
|
||||
### 发布新版本
|
||||
|
||||
```bash
|
||||
# 1. 更新版本号
|
||||
npm version patch # 或 minor、major
|
||||
# 1. 更新版本号并生成版本提交/标签
|
||||
pnpm version patch # 或 minor、major
|
||||
|
||||
# 2. 推送标签
|
||||
# 2. 推送 main 分支代码(只触发 CI,不会发布)
|
||||
git push origin main
|
||||
git push origin --tags
|
||||
|
||||
# 3. 自动发布
|
||||
# → Release 工作流自动运行
|
||||
# 3. 推送本次版本标签(触发 Release 工作流)
|
||||
git push origin v$(node -p "require('./package.json').version")
|
||||
|
||||
# 4. 自动发布
|
||||
# → Release 工作流只在 v*.*.* 标签推送时运行
|
||||
# → 生成 GitHub Release
|
||||
# → 附加可安装的 ZIP 文件
|
||||
```
|
||||
|
||||
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -62,8 +62,6 @@ jobs:
|
||||
# ------------------------------------------
|
||||
- name: 📦 Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9.15.4
|
||||
|
||||
# ------------------------------------------
|
||||
# 步骤 3: 设置 Node.js
|
||||
|
||||
2
.github/workflows/complete-tests.yml
vendored
2
.github/workflows/complete-tests.yml
vendored
@ -43,8 +43,6 @@ jobs:
|
||||
|
||||
- name: 📦 Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9.15.4
|
||||
|
||||
- name: 🔧 Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -63,8 +63,6 @@ jobs:
|
||||
# ------------------------------------------
|
||||
- name: 📦 Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9.15.4
|
||||
|
||||
# ------------------------------------------
|
||||
# 步骤 3: 设置 Node.js 环境
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户