feat: split SDKs by target for NPM

This commit is contained in:
jif-oai
2026-02-11 19:39:26 +00:00
parent b4ffb2eb58
commit 7df70d6500
6 changed files with 159 additions and 14 deletions
+8
View File
@@ -601,6 +601,9 @@ jobs:
"codex-npm-win32-*-${version}.tgz"
"codex-responses-api-proxy-npm-${version}.tgz"
"codex-sdk-npm-${version}.tgz"
"codex-sdk-npm-linux-*-${version}.tgz"
"codex-sdk-npm-darwin-*-${version}.tgz"
"codex-sdk-npm-win32-*-${version}.tgz"
)
for pattern in "${patterns[@]}"; do
gh release download "$tag" \
@@ -638,6 +641,11 @@ jobs:
platform="${platform%-${VERSION}.tgz}"
tag="${prefix}${platform}"
;;
codex-sdk-npm-linux-*-"${VERSION}".tgz|codex-sdk-npm-darwin-*-"${VERSION}".tgz|codex-sdk-npm-win32-*-"${VERSION}".tgz)
platform="${filename#codex-sdk-npm-}"
platform="${platform%-${VERSION}.tgz}"
tag="${prefix}${platform}"
;;
codex-npm-"${VERSION}".tgz|codex-responses-api-proxy-npm-"${VERSION}".tgz|codex-sdk-npm-"${VERSION}".tgz)
tag="${NPM_TAG}"
;;