Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7741fa65ae | |||
| 52acbb89eb |
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) {
|
||||||
|
|||||||
3
TEST_ALPHA.md
Normal file
3
TEST_ALPHA.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Test Branch Alpha Release
|
||||||
|
|
||||||
|
This is a test commit to verify the new alpha release workflow on the test branch.
|
||||||
Reference in New Issue
Block a user