From d96bf1e0b98077be5de93619611ff40b38047608 Mon Sep 17 00:00:00 2001 From: justsisyphus Date: Mon, 19 Jan 2026 15:17:50 +0900 Subject: [PATCH] fix(publish): disable provenance for platform packages to avoid OIDC expiration --- script/publish.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/publish.ts b/script/publish.ts index 8d0db784..0d7b4d9e 100644 --- a/script/publish.ts +++ b/script/publish.ts @@ -161,9 +161,9 @@ interface PublishResult { error?: string } -async function publishPackage(cwd: string, distTag: string | null): Promise { +async function publishPackage(cwd: string, distTag: string | null, useProvenance = true): Promise { const tagArgs = distTag ? ["--tag", distTag] : [] - const provenanceArgs = process.env.CI ? ["--provenance"] : [] + const provenanceArgs = process.env.CI && useProvenance ? ["--provenance"] : [] try { await $`npm publish --access public --ignore-scripts ${provenanceArgs} ${tagArgs}`.cwd(cwd) @@ -212,7 +212,7 @@ async function publishAllPackages(version: string): Promise { const pkgName = `oh-my-opencode-${platform}` console.log(` Starting ${pkgName}...`) - const result = await publishPackage(pkgDir, distTag) + const result = await publishPackage(pkgDir, distTag, false) return { platform, pkgName, result } })