Skip to content

Release 0.1.1 through trusted publishing, without the npm token - #4

Merged
snlamm merged 1 commit into
mainfrom
claude/project-thread-aualb0
Nov 1, 2026
Merged

snlamm merged 1 commit into
mainfrom
claude/project-thread-aualb0

Conversation

@snlamm

@snlamm snlamm commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

The 0.1.0 releases of @submilli/sdk, @submilli/ai-sdk, and @submilli/mastra went out today through the release workflow, using a one-time NPM_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.yml no longer passes NPM_TOKEN to npm publish. The workflow authenticates only through OIDC, from the npm environment, and the environment accepts only *-v* tags. The header comment says so.
  • The README's "CI and releases" section describes the setup as it is now: no token in GitHub. It also notes that a brand-new package needs one first release by a maintainer.
  • All three packages are bumped to 0.1.1, along with VERSION in @submilli/sdk and the lockfile. Each changelog gets a 0.1.1 entry: "Published from GitHub Actions through npm trusted publishing. No code changes." @submilli/ai-sdk and @submilli/mastra still depend on @submilli/sdk ^0.1.0.

Verification

  • Locally: typecheck, unit tests (21 + 22 + 26 pass), and npm run check (build + publint) pass.
  • Live, after merge:
    1. Delete NPM_TOKEN from the npm environment and revoke the token on npmjs.com, so a successful release can only have come from OIDC.
    2. Push sdk-v0.1.1, then ai-sdk-v0.1.1 and mastra-v0.1.1.
    3. Each Release run is green, and its publish step logs a signed provenance statement.
    4. Each package's Trusted Publisher on npmjs.com no longer says "Pending validation", and npm view @submilli/<pkg> version prints 0.1.1.

Generated by Claude Code

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
@snlamm
snlamm merged commit 3d1b741 into main Nov 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants