Repository navigation
chore(release): publish to npm from a GitHub release's tag - #61
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
afterimaginary
marked this pull request as ready for review
October 26, 2026 18:47
This was referenced Oct 26, 2026
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.
Part of #19 and #20. The first publish itself is left to the maintainer.
Summary
Sets up releasing in its simplest form. Publishing a GitHub release from
mainis the whole process: itsvX.Y.Ztag sets the version, CI publishes to npm through trusted publishing, so no token is stored, and the release notes GitHub generates are the changelog. It also addsSECURITY.mdand fixes what a pre-publish audit of the docs turned up.Changes
.github/workflows/release.ymlruns when a release is published:vX.Y.Zon a commit inmain. This blocks a prerelease going out aslatest, and stops pnpm reading a tag likevmajoras a bump.verify.pnpm publish. With trusted publishing, pnpm attaches provenance itself.verify.yml.package.jsonstays at0.0.0in the repository, there's no CHANGELOG, and the unusedbumppdev dependency is removed.0.0.0placeholder by hand, addrelease.ymlas the trusted publisher, then create the first release within npm's two-day window.SECURITY.md, which asks for reports through GitHub's private vulnerability reporting;agent-benchmark-pilottag;simulate-hints;package.jsonhas more keywords.Verification
vp run ready(the pre-push hook) passes, with all 107 tests, after rebasing onto feat(checker): run as a Claude Code hook with --claude-code-hook #60.vp pm version 0.1.0 -- --no-git-tag-versionbumpedpackage.jsonwithout making a commit or a tag.vp pm publish --dry-run --no-git-checksbuilt the package and stopped before publishing.v1.2.3and rejectsv1.0.0-rc.1./refinefound no P0 or P1 issues. Its P2 findings (no check that the tag is onmain, prereleases published aslatest) and its P3 findings are fixed.Observations
raw.githubusercontent.cominstall link returns 404 until then.