Repository navigation
Conversation
roncohen
enabled auto-merge (squash)
November 27, 2026 14:01
roncohen
disabled auto-merge
November 27, 2026 14:01
roncohen
enabled auto-merge (squash)
November 27, 2026 14:02
| head=$(git ls-remote --exit-code origin refs/heads/maintenance/v1 | cut -f1) | ||
| test "$GITHUB_REF_PROTECTED" = true && test "$head" = "$GITHUB_SHA" | ||
| - name: Add legacy tags without changing latest | ||
| run: node scripts/v1-release.mjs tag-legacy |
There was a problem hiding this comment.
[P2] Provide npm authentication for legacy dist-tag updates
When any legacy tag is missing, this step invokes npm dist-tag add, but the job supplies no npm credential. id-token: write enables trusted publishing for npm publish; it does not authenticate standalone dist-tag mutations, and setup-node only configures the registry/token reference rather than supplying a token. Consequently, the manual seeding job fails on its first required update instead of preserving the v1 tags. Supply an appropriately scoped npm write token through NODE_AUTH_TOKEN for this protected step, or use another supported authenticated mechanism for dist-tag updates.
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
Move future releases from
maintenance/v1to npm'slegacytag so v1 patches cannot replace the v2latestchannel. Keep the Git branch name and existing versioned-release approvals.--tag legacy.legacy, falling back tolatestonly when no legacy baseline exists. A v2latestcannot authorize a v1 patch.latestalone, and refuses to replace a different existinglegacytag.npm-v1-releaseenvironment,V1_PUBLISH_ENABLEDgate, and OIDC authentication.The tag-only workflow needs
workflow_dispatchregistered on the default branch and Allow npm dist-tag enabled for the matching npm trusted publishers. It runs with:Seed the legacy tags before publishing SDK v2 to
latest. This PR does not publish packages or change tags when merged; the tag migration is manual.Validation
latestisolation, patch sequencing, tag idempotency, invalid/unpublished targets, and existing-tag preservation.