Skip to content

Commit 20ea31b

Browse files
committed
Update RELEASE.md: perform release before next version update
Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
1 parent 79c74be commit 20ea31b

1 file changed

Lines changed: 19 additions & 10 deletions

File tree

‎RELEASE.md‎

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,22 @@ git commit --signoff --message "Release version $RELEASE_VERSION"
4848
git tag --annotate "v$RELEASE_VERSION" --message "Release version $RELEASE_VERSION"
4949
```
5050

51-
Review the commit and the tag (`git show "v$RELEASE_VERSION"`), then prepare the next version:
51+
Review the commit and the tag (`git show "v$RELEASE_VERSION"`), then push it and release the
52+
version.
53+
54+
> ⚠️ Take a good review before pushing!
55+
56+
Push:
57+
58+
```shell
59+
git push --tags origin HEAD
60+
```
61+
62+
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+
66+
Once the release is done, update to the next version, review the commit, and push:
5267

5368
```shell
5469
# Update version in pom
@@ -58,16 +73,10 @@ git add pom.xml "**/pom.xml"
5873
git commit --signoff --message "Next development version"
5974
```
6075

61-
Review the commit (`git show`).
62-
63-
> ⚠️ Take a good review before pushing!
64-
65-
Then push it all:
76+
Review the commit (`git show`). Push:
6677

6778
```shell
68-
git push --tags origin HEAD
79+
git push origin HEAD
6980
```
7081

71-
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".
72-
73-
Create release notes.
82+
Lastly, create release notes.

0 commit comments

Comments
 (0)