Repository navigation
feat(release): automate cross-platform npm publication - #36
Merged
Merged
Conversation
hyfdev
force-pushed
the
codex/align-napi-platforms
branch
from
August 18, 2026 08:01
0deef1f to
8f3112e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
@taffyjs/nodewith the 13 native targets maintained by the pinned napi-rs package template while keeping ordinary CI limited to Linux x64 GNU and Windows x64 MSVC runtime testsPublish CoreandPublish Yogaworkflows that run publication-only builds and Wasm verification, plan versions, assemble and install final tarballs, publish through npm Trusted Publishing, and create GitHub Releases with generated notes0.0.0-bootstrap.0placeholders and configures OIDC trust; the first stable release for each group is0.0.1Release model
Source manifests remain private at
0.0.0; only verified staging manifests become public. Core keeps Node, Wasm, and all 13 native binding packages on one exact version. Yoga and Yoga Wasm share a separate version and retain exact dependencies on the latest complete Core release.Ordinary CI runs native tests only on Linux x64 GNU and Windows x64 MSVC, plus Node and Rust static checks on Linux. It does not build macOS, Wasm, or release artifacts. Dispatching one workflow from
mainis the only normal human release step. Both publication workflows run the complete Wasm package graph before assembly; Core publication additionally builds the full 13-target native matrix.Build and assembly jobs have read-only repository access and no npm identity; only the final publish job receives
id-token: write. Publication is resumable by tarball integrity, rejects conflicting registry bytes or tag identities, and creates the GitHub tag and release only after the complete npm group passes its registry smoke test.Validation
pnpm exec vp run checkpnpm exec vp run check:wasmpnpm exec vp run check:releaseNAPI_RS_ENFORCE_VERSION_CHECK=1npm publish --dry-run --json --access publicfor all 17 stable tarballsAdversarial review
Two independent reviewers examined the package/platform path and the publication/security path in each of two full rounds. Findings included a staged loader version mismatch, remote tag identity and retry gaps, unsafe bootstrap partial-failure behavior, GitHub Release recovery, and workflow-dispatch shell injection. The final CI-boundary delta received an additional two-reviewer check; its structural gate was strengthened against commented or detached verification jobs and retested with the original bypass variants. Every finding is closed.
No npm package, Trusted Publisher, tag, or GitHub Release was created by this PR. The remaining external proof is the first real GitHub-hosted publication run, including npm OIDC and the FreeBSD VM artifact transfer.