docs(xiaoyi): specify release timestamp before publishing
This commit is contained in:
parent
78a7bb15b7
commit
402b2fbbf7
@ -61,6 +61,11 @@ if ($receipt.commit -ne $env:XIAOYI_BUILD_COMMIT -or $receipt.version -ne $versi
|
||||
3. 汇报 `main` 提交、稳定通道版本、产物链接、SHA-256 及客户端验收范围。记录源码验证、Rust 构建、依赖准备、打包、上传和线上验收的实际用时,下一次按最慢的阶段优化。发布验证完成后清理本次解包目录、临时依赖、测试配置和日志,保留 ZIP、清单和已有构建缓存。
|
||||
|
||||
```powershell
|
||||
# 将发布时刻写入清单。打包脚本只记录构建时刻。
|
||||
$receipt = Get-Content -Raw -LiteralPath $manifest | ConvertFrom-Json
|
||||
$receipt | Add-Member -NotePropertyName publishedAt -NotePropertyValue ([DateTime]::UtcNow.ToString('o')) -Force
|
||||
$receipt | ConvertTo-Json -Depth 8 | Set-Content -LiteralPath $manifest -Encoding utf8
|
||||
|
||||
# $releaseEnv 指向获准的发布配置。已安装的 tsx 负责执行仓库内发布脚本。
|
||||
node --env-file="$releaseEnv" node_modules/tsx/dist/cli.mjs `
|
||||
scripts/publish-xiaoyi-client.ts --zip $zip --release $manifest --channel stable
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user