Skip to content

Commit 13e30f1

Browse files
fix: treat v1.x as primary branch for npm latest tag (backport #1577) (#1749)
1 parent a056569 commit 13e30f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

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

0 commit comments

Comments
 (0)