fix: add repository metadata so the npm provenance publish succeeds#6
Merged
Conversation
Provenance publish requires package.json repository.url to match the repo. It was missing, so the v1.0.0 publish failed (E422). Adds repository/bugs/homepage.
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
Fixes the failed Release run after v1.0.0. The release publishes to npm with provenance (
publishConfig.provenance: true+NPM_CONFIG_PROVENANCE: 'true'inrelease.yml), and npm rejects a provenance publish unlesspackage.jsonhas arepository.urlmatching the GitHub repo. The field was missing, so the first publish failed:This adds
repository(plusbugs/homepage). No code changes.Recovery note
v1.0.0 cut a git tag but nothing was published to npm and no GitHub release was created. Merging this is a
fix:, so the next release publishes v1.0.1 as the first real npm version; the unused v1.0.0 tag is left as-is (chosen over deleting a remote tag).Test plan
package.jsonvalid;repository.urlresolves tohttps://github.com/evertrust/stream-mcpfix:message