Repository navigation
Conversation
- Publish jobs run in the `release` environment and obtain a short-lived publish token via GitHub OIDC; NODE_AUTH_TOKEN removed. - Upgrade npm to >= 11.5.1 (required for trusted publishing). - Pack with pnpm (resolves workspace: deps), publish the tarball with npm (OIDC + automatic provenance). - Skip versions that are already published, matching the previous pnpm --filter publish behavior. - Add `repository` to both packages, required for provenance. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
alexon1234
approved these changes
Nov 9, 2026
This branch has not been deployed
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
Switches
publish.ymlfrom a stored npm token to npm trusted publishing. Each publish job gets a short-lived OIDC token from GitHub and exchanges it with npm for a short-lived, package-scoped publish token. No npm credential is stored in the repo.Changes
releaseenvironment withid-token: write.NODE_AUTH_TOKENis removed.^11.5.1, the minimum for trusted publishing (Node 20 ships npm 10).pnpm packturns"@tinybirdco/sdk": "workspace:*"in the MCP package into the real version.npm publish <tarball>then authenticates via OIDC and attaches provenance automatically.pnpm --filter … publishused to skip them silently.npm publishfails on them instead, so the job checksnpm view name@versionfirst. Without this, every merge that doesn't bump a version would fail.repositoryfield is added to@tinybirdco/sdkand@tinybirdco/devtools-mcp(withdirectory: mcp). npm checks provenance against it.Verification
environment: releaseandid-token: write.@tinybirdco/sdk@0.0.84and@tinybirdco/devtools-mcp@0.0.3are detected as published and skipped.pnpm packinmcp/produces a tarball with"@tinybirdco/sdk": "0.0.84", notworkspace:*.npm publish <tarball> --dry-runaccepts the tarball.Requires trusted-publisher configuration before merge (tracked internally).
🤖 Generated with Claude Code