Add release workflow publishing to npm - #6
Merged
Merged
Conversation
dkanas
force-pushed
the
release-workflow
branch
2 times, most recently
from
August 6, 2026 07:17
4b260b5 to
4366b80
Compare
Runs on pushes to main, publishes only when the package.json version changed, then tags the release. workflow_dispatch forces a publish. Uses a push trigger rather than workflow_run. workflow_run grants write permissions and OIDC access while running in the base repository, so checking out the triggering run's head_sha would execute pull request code from forks in a privileged context. A push to main cannot originate from a fork. Switches publishConfig from GitHub Packages to registry.npmjs.org with public access. The previous target could not serve `npx @contractbook/mcp`, which is what the README and the setup command tell users to run. Aligns the CI workflow's action versions with the publish workflow. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
dkanas
force-pushed
the
release-workflow
branch
from
August 6, 2026 08:28
4366b80 to
7658203
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.
Adds a publish workflow: runs after a successful CI run on
main, publishes only when thepackage.jsonversion changed, then tags the release asv<version>.workflow_dispatchforces a publish.Switches
publishConfigtoregistry.npmjs.orgwith public access, sonpx @contractbook/mcpworks as the README and setup command describe.Authentication is npm trusted publishing via OIDC.