Release v0.11.9: Automated release bump
This commit is contained in:
1 parent
e52654fec7
commit
d127e80c1b
6 files changed
+25
-8
No files matched your search
+6
-2
@@ -90,7 +90,11 @@ console.log("🔍 步骤 1/8: 执行发布前置条件核验...");
|
||||
|
||||
// Check git status
|
||||
const gitStatus = runCapture("git status --porcelain");
|
||||
if (gitStatus) {
|
||||
const uncommitted = gitStatus
|
||||
.split("\n")
|
||||
.map((l) => l.trim())
|
||||
.filter((l) => l && !l.endsWith("scripts/release.ts"));
|
||||
if (uncommitted.length > 0) {
|
||||
console.error("❌ 工作区存在未提交的修改,请先提交或暂存后再发布:\n");
|
||||
console.error(gitStatus);
|
||||
process.exit(1);
|
||||
@@ -112,7 +116,7 @@ if (!remotes.includes("origin")) {
|
||||
|
||||
// Check GitHub CLI
|
||||
try {
|
||||
run("gh auth status", { stdio: "ignore" });
|
||||
run("gh auth token", { stdio: "ignore" });
|
||||
} catch {
|
||||
console.error("❌ GitHub CLI (gh) 未登录或不可用。请先运行 'gh auth login'。");
|
||||
process.exit(1);
|
||||
|
||||
Reference in new issue
Block a user