fix(meta): 放寬 major 版本限制

This commit is contained in:
2026-08-25 16:41:57 +08:00
parent acbbd30a0f
commit fbb7004e70
3 changed files with 4 additions and 9 deletions
+2 -7
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env sh
# sync-skill-manifest.sh — 同步 domain 的 README「Skills 目錄」區塊,並把該 domain 所有
# plugin manifest 的 version 各 bump 一次,且每個數字都不超過 9。
# plugin manifest 的 version 各 bump 一次,且 major 可超過 9;minor 與 patch 仍是單位數。
#
# 用法: sync-skill-manifest.sh <domain-path>
#
@@ -11,7 +11,7 @@
#
# manifest: 依序找出 domain 下存在的 plugin.json、.claude-plugin/plugin.json、
# .codex-plugin/plugin.json,version 一律 bump 成同一個新值(以第一份找到的 manifest 版本為準,
# 右側數字加一,滿 9 就往左進位;任何一位都不超過 9)。
# 右側數字加一,滿 9 就往左進位;major 不設上限,minor 與 patch 都不超過 9)。
#
# 輸出: 變更摘要——README 新增/移除的技能小節、各 manifest 的舊版本 -> 新版本。
set -eu
@@ -164,11 +164,6 @@ while [ "$minor" -gt 9 ]; do
major=$((major + 1))
done
if [ "$major" -gt 9 ]; then
echo "版本已超出三位單數字可表示範圍: $old" >&2
exit 1
fi
new="$major.$minor.$patch"
echo "== manifest version =="