All checks were successful
skill-release-placeholder / release (push) Successful in 1s
24 lines
605 B
PowerShell
24 lines
605 B
PowerShell
[CmdletBinding()]
|
|
param(
|
|
[string]$Prefix = "v",
|
|
[string]$Message = "正式发布",
|
|
[switch]$AutoCommit,
|
|
[switch]$RequireClean,
|
|
[string]$CommitMessage,
|
|
[switch]$DryRun
|
|
)
|
|
|
|
Set-StrictMode -Version Latest
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
$sharedScript = Join-Path $scriptDir "..\jiangchang-platform-kit\tools\release.ps1"
|
|
$sharedScript = [System.IO.Path]::GetFullPath($sharedScript)
|
|
|
|
if (-not (Test-Path $sharedScript)) {
|
|
throw "Shared release script not found: $sharedScript"
|
|
}
|
|
|
|
& $sharedScript @PSBoundParameters
|
|
exit $LASTEXITCODE
|