feat: 优化分支发布策略 - 分离test和develop职责
主要变更: - alpha.yml: 修改触发分支从develop改为test分支 - snapshot.yml: 强化develop专用职责,优化描述信息 - 创建test分支: 专门用于alpha版本发布 分支策略优化: - develop → @snapshot (开发快照,高频更新) - test → @alpha (精选功能测试版本) - staging → @beta (稳定预览版本) - main → @latest (正式发布版本) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
10
.github/workflows/alpha.yml
vendored
10
.github/workflows/alpha.yml
vendored
@ -3,7 +3,7 @@ name: Alpha Release
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- test
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||||
@ -39,7 +39,7 @@ jobs:
|
|||||||
- name: Release alpha version
|
- name: Release alpha version
|
||||||
run: |
|
run: |
|
||||||
# 确保在正确的分支
|
# 确保在正确的分支
|
||||||
git checkout develop
|
git checkout test
|
||||||
|
|
||||||
# 获取当前时间戳和短commit hash
|
# 获取当前时间戳和短commit hash
|
||||||
TIMESTAMP=$(date +%Y%m%d%H%M%S)
|
TIMESTAMP=$(date +%Y%m%d%H%M%S)
|
||||||
@ -81,7 +81,7 @@ jobs:
|
|||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
state: 'open',
|
state: 'open',
|
||||||
base: 'develop'
|
base: 'test'
|
||||||
});
|
});
|
||||||
|
|
||||||
const comment = `🚀 **Alpha版本已发布!**
|
const comment = `🚀 **Alpha版本已发布!**
|
||||||
@ -97,9 +97,9 @@ jobs:
|
|||||||
npx dpml-prompt@${version} action <roleId>
|
npx dpml-prompt@${version} action <roleId>
|
||||||
\`\`\`
|
\`\`\`
|
||||||
|
|
||||||
💡 你可以使用这个alpha版本测试最新的develop分支功能。
|
💡 你可以使用这个alpha版本测试最新的test分支功能。
|
||||||
|
|
||||||
⚠️ **迁移提示**: 推荐使用 \`@alpha\` 替代 \`@snapshot\` 进行开发测试。`;
|
🧪 **Alpha定位**: 精选功能测试版本,适合功能验证和用户测试。`;
|
||||||
|
|
||||||
// 为每个相关PR添加评论
|
// 为每个相关PR添加评论
|
||||||
for (const pr of prs) {
|
for (const pr of prs) {
|
||||||
|
|||||||
5
.github/workflows/snapshot.yml
vendored
5
.github/workflows/snapshot.yml
vendored
@ -83,7 +83,7 @@ jobs:
|
|||||||
base: 'develop'
|
base: 'develop'
|
||||||
});
|
});
|
||||||
|
|
||||||
const comment = `🚀 **Snapshot版本已发布!**
|
const comment = `📸 **Snapshot版本已发布!**
|
||||||
|
|
||||||
📦 版本号: \`${version}\`
|
📦 版本号: \`${version}\`
|
||||||
🔗 安装命令: \`npx dpml-prompt@${version} <command>\`
|
🔗 安装命令: \`npx dpml-prompt@${version} <command>\`
|
||||||
@ -96,7 +96,8 @@ jobs:
|
|||||||
npx dpml-prompt@${version} action <roleId>
|
npx dpml-prompt@${version} action <roleId>
|
||||||
\`\`\`
|
\`\`\`
|
||||||
|
|
||||||
💡 你可以使用这个snapshot版本测试最新的develop分支功能。`;
|
⚡ **Snapshot定位**: 开发快照版本,包含最新代码变更,供快速验证和开发测试使用。
|
||||||
|
💡 如需稳定测试版本,推荐使用 \`@alpha\` 或 \`@beta\`。`;
|
||||||
|
|
||||||
// 为每个相关PR添加评论
|
// 为每个相关PR添加评论
|
||||||
for (const pr of prs) {
|
for (const pr of prs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user