fix: remove TS overloads incompatible with --experimental-strip-types, fix 204 response, fix retention-days
- lib/github.ts: Remove getEnv overload signatures (Node.js experimental-strip-types does not support TS function overloads, causes SyntaxError at parse time) - lib/github.ts: Handle 204 No Content in request<T> (DELETE returns 204, calling response.json() on empty body throws) - build-pr.yml: retention-days 7->5 (repo max is 5)
This commit is contained in:
2 files changed
+9
-5
No files matched your search
@@ -191,7 +191,7 @@ jobs:
|
||||
with:
|
||||
name: NapCat.Framework
|
||||
path: workspace/framework-dist
|
||||
retention-days: 7 # 保留 7 天
|
||||
retention-days: 5 # 保留 5 天(仓库上限)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Job 4: 构建 Shell 包
|
||||
@@ -263,7 +263,7 @@ jobs:
|
||||
with:
|
||||
name: NapCat.Shell
|
||||
path: workspace/shell-dist
|
||||
retention-days: 7 # 保留 7 天
|
||||
retention-days: 5 # 保留 5 天(仓库上限)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Job 5: 更新评论为构建结果
|
||||
@@ -370,7 +370,7 @@ jobs:
|
||||
with:
|
||||
name: install-script
|
||||
path: ./release-assets/install.sh
|
||||
retention-days: 7
|
||||
retention-days: 5
|
||||
if-no-files-found: ignore
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user