fix(ci): enable platform package publishing #829
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The platform-specific npm packages (oh-my-opencode-linux-x64, oh-my-opencode-darwin-arm64, etc.) are returning 404 from npm because they were never published.
Root Cause
SKIP_PLATFORM_PACKAGES: truewas added in commit 0230e71 by @justsisyphus on Jan 16 as a temporary workaround when OIDC wasn't configured for the platform packages. The 'for now' workaround was never removed.Fix
Remove the
SKIP_PLATFORM_PACKAGES: trueflag so the publish workflow publishes all 8 packages (main + 7 platform binaries).Note
For the first publish of the platform packages, ensure
NPM_TOKENis configured as a repo secret since OIDC/Trusted Publisher can only be configured after the packages exist on npm.After the first successful publish, configure Trusted Publisher on npmjs.com for each of the 8 packages to enable OIDC authentication going forward.
Summary by cubic
Enable publishing of platform-specific npm packages by removing SKIP_PLATFORM_PACKAGES from the CI workflow. Fixes 404 installs for platform binaries and ensures the main package plus 7 platform packages are published.
Written for commit f76e909. Summary will update on new commits.