Skip to content

fix(release): add repository field to package.json for provenance - #47

Merged
codewizdave merged 1 commit into
mainfrom
release/release-system-stack
Aug 3, 2026
Merged

fix(release): add repository field to package.json for provenance#47
codewizdave merged 1 commit into
mainfrom
release/release-system-stack

Conversation

@martyy-code

Copy link
Copy Markdown
Contributor

Summary

The trusted publishing flow now reaches npm with a signed provenance attestation, but npm rejects with E422:

Error verifying sigstore provenance bundle: Failed to validate
repository information: package.json: "repository.url" is "",
expected to match "https://github.com/deessejs/errors" from provenance

The fix is one missing field: packages/errors/package.json had no repository block. npm uses it to verify the package is genuinely from the same repo the OIDC token was minted for.

Change

Add "repository": { "type": "git", "url": "https://github.com/deessejs/errors.git" } to packages/errors/package.json.

Effect

Next merge of this branch (or any other PR adding a changeset) triggers the release workflow. With the repository field set, the provenance check passes, and the publish goes through.

🤖 Generated with Claude Code

…ification

The publish step now reaches npm with a signed OIDC provenance
attestation, but npm rejects the publish with:

  E422 422 Unprocessable Entity
  Error verifying sigstore provenance bundle: Failed to validate
  repository information: package.json: "repository.url" is "",
  expected to match "https://github.com/deessejs/errors" from provenance

Adds the missing repository field to packages/errors/package.json so
the value matches the URL in the provenance attestation. This was the
only remaining blocker for the first trusted-publishing release.

Adds a changeset to pass the new ci.yml lint.
@codewizdave
codewizdave merged commit 88f8ace into main Aug 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants