fix(M00): 调整模块推送门禁顺序
This commit is contained in:
@@ -22,11 +22,6 @@ Run-Step "workspace check" {
|
||||
powershell -ExecutionPolicy Bypass -File scripts/dev/windows/check-workspace.ps1
|
||||
}
|
||||
|
||||
Run-Step "local tests" {
|
||||
powershell -ExecutionPolicy Bypass -File scripts/dev/windows/test-all.ps1
|
||||
powershell -ExecutionPolicy Bypass -File scripts/dev/windows/check-secrets.ps1
|
||||
}
|
||||
|
||||
Run-Step "git preflight" {
|
||||
$branch = & git branch --show-current
|
||||
if ($branch -ne "main") {
|
||||
@@ -41,9 +36,12 @@ Run-Step "git preflight" {
|
||||
& git status --short --branch --untracked-files=all
|
||||
}
|
||||
|
||||
Run-Step "stage files" {
|
||||
Run-Step "stage declared files" {
|
||||
if ($Paths.Count -gt 0) {
|
||||
foreach ($path in $Paths) {
|
||||
if (-not (Test-Path $path)) {
|
||||
throw "Path not found: $path"
|
||||
}
|
||||
& git add -- $path
|
||||
}
|
||||
}
|
||||
@@ -58,6 +56,11 @@ Run-Step "stage files" {
|
||||
}
|
||||
}
|
||||
|
||||
Run-Step "local tests" {
|
||||
powershell -ExecutionPolicy Bypass -File scripts/dev/windows/test-all.ps1
|
||||
powershell -ExecutionPolicy Bypass -File scripts/dev/windows/check-secrets.ps1
|
||||
}
|
||||
|
||||
Run-Step "commit" {
|
||||
if ($Amend) {
|
||||
& git commit --amend --no-edit
|
||||
@@ -82,4 +85,3 @@ Run-Step "remote verify" {
|
||||
}
|
||||
|
||||
Write-Host "PASS: module pushed and verified."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user