You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 779893c
Browse filesBrowse the repository at this point in the historyBrowse files
Ensure you have the latest changes locally, and no uncommitted changes.
16
+
Then create a release branch.
15
17
16
18
```shell
17
-
export RELEASE_VERSION=2.2.0
18
-
export NEXT_VERSION=2.2.1-SNAPSHOT
19
+
git switch main
20
+
git pull --ff-only
21
+
git status
22
+
git switch --create "$RELEASE_BRANCH"
19
23
```
20
24
21
25
Update the versions:
@@ -51,19 +55,29 @@ git tag --annotate "v$RELEASE_VERSION" --message "Release version $RELEASE_VERSI
51
55
Review the commit and the tag (`git show "v$RELEASE_VERSION"`), then push it and release the
52
56
version.
53
57
54
-
> ⚠️ Take a good review before pushing!
58
+
> ⚠️ Take a good review before pushing, and make sure the versions are correct.
55
59
56
60
Push:
57
61
58
62
```shell
59
-
git push --tags origin HEAD
63
+
git push --tags --set-upstream origin HEAD
60
64
```
61
65
62
66
Then release from the "[Release to Maven Central](https://github.com/modelcontextprotocol/java-sdk/actions/workflows/maven-central-release.yml)" action. Click "Run workflow", choose the newly pushed tag, then "run workflow".
63
-
Wait for the release to be done before updating the "next version". In case anything goes wrong, you
64
-
can "add" to the release and update the tag.
65
67
66
-
Once the release is done, update to the next version, review the commit, and push:
68
+
> ⚠️ Wait for the release to succeed before moving forward. You can still make changes on the
69
+
> release branch before merging to main, in case anything goes wrong.
70
+
71
+
Once the release is done, you can merge your changes back into main:
0 commit comments