Repository navigation
Release 0.1.1 through trusted publishing, without the npm token - #4
Merged
Merged
Conversation
The 0.1.0 releases used a one-time NPM_TOKEN because npm only lets a trusted publisher be added to an existing package. Every package now has one, so the workflow no longer reads the token. 0.1.1 has no code changes; publishing it from the workflow validates each package's trusted publisher. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014d2JuhSwzcQH4diYxuUc4u
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.
The 0.1.0 releases of
@submilli/sdk,@submilli/ai-sdk, and@submilli/mastrawent out today through the release workflow, using a one-timeNPM_TOKEN. We needed the token because npm only lets you add a trusted publisher to a package that already exists. All three packages now have one, so this PR moves releases to trusted publishing alone.npm marks a new trusted publisher as "pending validation" until a publish goes through it, and the deadline is Nov 3, 2026, 20:01 UTC. Releasing 0.1.1 from this commit is that publish.
What changes
release.ymlno longer passesNPM_TOKENtonpm publish. The workflow authenticates only through OIDC, from thenpmenvironment, and the environment accepts only*-v*tags. The header comment says so.VERSIONin@submilli/sdkand the lockfile. Each changelog gets a 0.1.1 entry: "Published from GitHub Actions through npm trusted publishing. No code changes."@submilli/ai-sdkand@submilli/mastrastill depend on@submilli/sdk^0.1.0.Verification
npm run check(build + publint) pass.NPM_TOKENfrom thenpmenvironment and revoke the token on npmjs.com, so a successful release can only have come from OIDC.sdk-v0.1.1, thenai-sdk-v0.1.1andmastra-v0.1.1.npm view @submilli/<pkg> versionprints 0.1.1.Generated by Claude Code