Skip to content

Commit 1db6c0f

Browse files
fix: treat v1.x as primary branch for npm latest tag (#1577)
1 parent 0096e4a commit 1db6c0f

2 files changed

Lines changed: 2 additions & 107 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ jobs:
9191
# Check if this is a beta release
9292
if [[ "$VERSION" == *"-beta"* ]]; then
9393
echo "tag=--tag beta" >> $GITHUB_OUTPUT
94-
# Check if this release is from a non-main branch (patch/maintenance release)
95-
elif [[ "${{ github.event.release.target_commitish }}" != "main" ]]; then
94+
# Check if this release is from a non-primary branch (patch/maintenance release)
95+
elif [[ "${{ github.event.release.target_commitish }}" != "main" && "${{ github.event.release.target_commitish }}" != "v1.x" ]]; then
9696
# Use "release-X.Y" as tag for old branch releases (e.g., "release-1.23" for 1.23.x)
9797
# npm tags are mutable pointers to versions (like "latest" pointing to 1.24.3).
9898
# Using "release-1.23" means users can `npm install @modelcontextprotocol/sdk@release-1.23`

.github/workflows/release-v1x.yml

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)