fix(publish): add repository field required by npm provenance verification#75
Merged
Merged
Conversation
…ation The first attempt at the v1.8.2 release failed with: npm error 422 Unprocessable Entity ... Error verifying sigstore provenance bundle: Failed to validate repository information: package.json: "repository.url" is "", expected to match "https://github.com/reearth/quickjs-emscripten-sync" from provenance. npm Trusted Publishing cross-checks the package.json `repository` field against the GitHub repo URL embedded in the OIDC-signed provenance attestation, and refuses the publish if they don't match. package.json had no `repository` field at all, so npm's check failed. Add the standard repository/homepage/bugs trio so the published tarball points back at the source repo correctly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Hot-fix for the v1.8.2 release. The first publish attempt failed at npm's provenance verification step:
Cause
npm Trusted Publishing cross-checks the package's `repository` field in `package.json` against the GitHub repo URL embedded in the OIDC-signed provenance attestation, and refuses the publish if they disagree. `package.json` here had no `repository` field at all, so the check failed.
Fix
Add the standard `repository` / `homepage` / `bugs` trio pointing at `reearth/quickjs-emscripten-sync`. These also improve the package page on npmjs.com — users get a working "Repository" link rather than nothing.
Confirmed no side effects
🤖 Generated with Claude Code