Skip to content

Commit 71eb41c

Browse files
feat: update publish.sh for increment RC and added more info in CHANGELOG.md
1 parent ab5f1a5 commit 71eb41c

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

.github/scripts/publish.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,23 @@ MAJOR=$(cat $VERSION_FILE | grep Major | grep -Eo '[0-9]*');
1212
MINOR=$(cat $VERSION_FILE | grep Minor | grep -Eo '[0-9]*');
1313
PATCH=$(cat $VERSION_FILE | grep Patch | grep -Eo '[0-9]*');
1414

15-
LAST_TAG="v$MAJOR.$MINOR.$PATCH";
16-
if [ "$VERSION_CHANGE" = "MINOR" ]
15+
LAST_TAG=$(git tag | tail -n 1);
16+
RC = 0;
17+
if [ "$RELEASE_CANDIDATE" = true ]
18+
then
19+
RC=$(git tag | grep "v$MAJOR.$MINOR.$PATCH-rc" | wc -l || true);
20+
fi
21+
if [ "$VERSION_CHANGE" = "MINOR" && "$RC" = 0 ]
1722
then
1823
MINOR=$((MINOR+1));
1924
PATCH=0;
2025
fi;
21-
if [ "$VERSION_CHANGE" = "PATCH" ]
26+
if [ "$VERSION_CHANGE" = "PATCH" && "$RC" = 0 ]
2227
then
2328
PATCH=$((PATCH+1));
2429
fi;
2530
if [ "$RELEASE_CANDIDATE" = true ]
2631
then
27-
RC=$(git tag | grep "v$MAJOR.$MINOR.$PATCH-rc" | wc -l || true);
2832
VERSION="$MAJOR.$MINOR.$PATCH-rc$RC";
2933
else
3034
sed -e "s/Minor = [0-9]*/Minor = $MINOR/g" -i $VERSION_FILE

CHANGELOG.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
1-
- Topic Writer updated release candidate
1+
- Topic Writer updated release candidate:
2+
* Do not send messages that have a timeout by cancelToken.
3+
* If your value serializer throws an exception, this will be wrapped in a WriterException with unspecified status.
4+
* Added BufferOverflowRetryTimeoutMs to the next try write.
5+
* Rename _disposeTokenSource -> _disposeCts.
6+
* Optimize write worker: if (_toSendBuffer.IsEmpty) continue.
7+
* On RPC errors create DummyWriterSession.
8+
* Message has been skipped because its sequence number is less than or equal to the last processed server's SeqNo.
9+
* Calculate the next sequence number from the calculated previous messages.
210

311
## v0.9.0-rc0
4-
- Topic Writer release candidate
12+
- Topic Writer release candidate:
13+
* Updated CAS semantics for enqueuing in the buffer.
14+
* Processed buffer overflow on WriteAsync.
15+
* Setting NotStartedWriterSession with a fail reason on RPC and more errors.
16+
* New initialization strategy for WriterSession (background task).
17+
* Supported cancellation token for sending tasks.
18+
* Fixed setting the SeqNo field in the message (in-flight buffer already has a seqNo) and added a check on canceled TCS.
19+
* Using BitConverter for Serializer / Deserializer.
520
- Fixed: grpc requests go via proxy on Grpc.NET.Client >= 2.44
621

722
## v0.8.0

0 commit comments

Comments
 (0)