Repository navigation
ci: staged npm publishing with OIDC trusted publishing - #10
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Cr1XmtnqJWfHjhrXu3mnPa
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
Adds
.github/workflows/publish.yml, modelled on ensdomains/address-encoder:id-token: writelets the job authenticate to npm via OIDC trusted publishing, so noNPM_TOKENsecret is needed.pnpm/setup@v3installs pnpm 12 + Node 24 and does a frozen install; then lint, typecheck, test and build run before publishing.pnpm stage publishuploads the version as staged: it doesn't go live until a maintainer approves it on npmjs.com with 2FA.nextdist-tag, normal releases tolatest.--no-git-checksis needed because release builds check out the tag (detached HEAD).Verified locally with
pnpm stage publish --dry-run; the tarball contains onlydist/index.js,dist/index.d.ts,LICENSE,README.mdandpackage.json.Required before the first release
On npmjs.com, under
@tinyhttp/vary→ Settings → Trusted publishing, add a GitHub Actions publisher:tinyhttpvarypublish.ymlGenerated by Claude Code