From 38d551d6b3cc96ed45fe35518ea5cf5eaaa2d965 Mon Sep 17 00:00:00 2001 From: Mederic Bazart Date: Tue, 14 May 2024 15:48:43 +0200 Subject: [PATCH 1/2] fix(server version): update server version --- CHANGELOG.md | 2 ++ README.md | 3 +++ config/config.go | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23186af3..4d3825f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## To be Released +* fix(server version): update server version + ## v1.0.2 - 28 Sep 2023 * chore: bump various dependencies diff --git a/README.md b/README.md index dba88ab2..23cf566b 100644 --- a/README.md +++ b/README.md @@ -239,8 +239,11 @@ Bump new version number in: Commit the new version number: ```sh +old_version="1.0.1" version="1.0.2" +sed -i "s/$old_version/$version/g" config/config.go + git switch --create release/${version} git add CHANGELOG.md README.md git commit -m "Bump v${version}" diff --git a/config/config.go b/config/config.go index dbd5474c..3f31e9a9 100644 --- a/config/config.go +++ b/config/config.go @@ -9,7 +9,7 @@ import ( "github.com/pkg/errors" ) -var Version = "v0.6-dev" +var Version = "v1.0.2" type Config struct { RollbarToken string From e7d79e8e9a8a47fb868e8286f4b6608aded3a572 Mon Sep 17 00:00:00 2001 From: Mederic Bazart Date: Wed, 15 May 2024 14:39:18 +0200 Subject: [PATCH 2/2] doc(release): fix commands for releasing new version --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 23cf566b..26829c3a 100644 --- a/README.md +++ b/README.md @@ -239,10 +239,9 @@ Bump new version number in: Commit the new version number: ```sh -old_version="1.0.1" version="1.0.2" -sed -i "s/$old_version/$version/g" config/config.go +sed --in-place "s/var Version = \"v\([0-9.]*\)\"/var Version = \"v$version\"/g" config/config.go git switch --create release/${version} git add CHANGELOG.md README.md