From 85a032e8a87372fe8be62b0ace28af30444ad87d Mon Sep 17 00:00:00 2001 From: Adrian Czerwiec Date: Tue, 25 Aug 2026 12:59:20 +0200 Subject: [PATCH 1/2] bump to 0.30.0, remove release automation folder --- .../bump-version.sh => bump-version.sh | 32 +++++++++---------- fishjam_protos/README.md | 2 +- fishjam_protos/mix.exs | 2 +- 3 files changed, 18 insertions(+), 18 deletions(-) rename release-automation/bump-version.sh => bump-version.sh (51%) diff --git a/release-automation/bump-version.sh b/bump-version.sh similarity index 51% rename from release-automation/bump-version.sh rename to bump-version.sh index 0cf81ea..d5c1a3d 100755 --- a/release-automation/bump-version.sh +++ b/bump-version.sh @@ -3,12 +3,12 @@ set -e # Usage: ./bump-version.sh VERSION="$1" -MIX_EXS="mix.exs" +MIX_EXS="./mix.exs" README="README.md" if [ -z "$VERSION" ]; then - echo "Usage: $0 " - exit 1 + echo "Usage: $0 " + exit 1 fi # Navigate to fishjam_protos directory @@ -18,34 +18,34 @@ BRANCH_NAME="release-$VERSION" git checkout -b "$BRANCH_NAME" if [ ! -f "$MIX_EXS" ]; then - echo "Error: $MIX_EXS not found in repo root" - exit 1 + echo "Error: $MIX_EXS not found in repo root" + exit 1 fi # Search and replace `@release_version ""` to new version if grep -q "@release_version" "$MIX_EXS"; then - sed -i.bak -E 's/(@release_version[[:space:]]*")[^"]*/\1'"$VERSION"'/' "$MIX_EXS" - rm -f "$MIX_EXS.bak" + sed -i.bak -E 's/(@release_version[[:space:]]*")[^"]*/\1'"$VERSION"'/' "$MIX_EXS" + rm -f "$MIX_EXS.bak" else - echo "Error: @release_version line not found in $MIX_EXS" - exit 1 + echo "Error: @release_version line not found in $MIX_EXS" + exit 1 fi # Confirm replacement: accept either a literal version string or the module attribute if grep -q "@release_version \"$VERSION\"" "$MIX_EXS"; then - echo "Updated $MIX_EXS to $VERSION" + echo "Updated $MIX_EXS to $VERSION" else - echo "Error: Failed to update version in $MIX_EXS via regex" - exit 1 + echo "Error: Failed to update version in $MIX_EXS via regex" + exit 1 fi # Update version in README.md if present if [ -f "$README" ]; then - sed -i.bak -E "s/:fishjam_protos, \"~> [0-9]+\.[0-9]+\.[0-9]+\"/:fishjam_protos, \"~> $VERSION\"/" "$README" - rm -f "$README.bak" - echo "Updated $README to version $VERSION" + sed -i.bak -E "s/:fishjam_protos, \"~> [0-9]+\.[0-9]+\.[0-9]+\"/:fishjam_protos, \"~> $VERSION\"/" "$README" + rm -f "$README.bak" + echo "Updated $README to version $VERSION" else - echo "⚠️ $README not found, skipping README version update" + echo "⚠️ $README not found, skipping README version update" fi echo "✅ Version bump complete for $VERSION" diff --git a/fishjam_protos/README.md b/fishjam_protos/README.md index c232f79..e4a1ce4 100644 --- a/fishjam_protos/README.md +++ b/fishjam_protos/README.md @@ -9,7 +9,7 @@ The package can be installed by adding `fishjam_protos` to your list of dependen ```elixir def deps do [ - {:fishjam_protos, "~> 0.29.0"} + {:fishjam_protos, "~> 0.30.0"} ] end ``` diff --git a/fishjam_protos/mix.exs b/fishjam_protos/mix.exs index 575ae4e..f37be2c 100644 --- a/fishjam_protos/mix.exs +++ b/fishjam_protos/mix.exs @@ -1,7 +1,7 @@ defmodule FishjamProtos.MixProject do use Mix.Project - @release_version "0.29.0" + @release_version "0.30.0" def project do [ From c5e4fabfbab3b105c98428bdf78fb0c745a590d0 Mon Sep 17 00:00:00 2001 From: Adrian Czerwiec Date: Tue, 25 Aug 2026 13:05:14 +0200 Subject: [PATCH 2/2] fix formatting --- bump-version.sh | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/bump-version.sh b/bump-version.sh index d5c1a3d..0cf81ea 100755 --- a/bump-version.sh +++ b/bump-version.sh @@ -3,12 +3,12 @@ set -e # Usage: ./bump-version.sh VERSION="$1" -MIX_EXS="./mix.exs" +MIX_EXS="mix.exs" README="README.md" if [ -z "$VERSION" ]; then - echo "Usage: $0 " - exit 1 + echo "Usage: $0 " + exit 1 fi # Navigate to fishjam_protos directory @@ -18,34 +18,34 @@ BRANCH_NAME="release-$VERSION" git checkout -b "$BRANCH_NAME" if [ ! -f "$MIX_EXS" ]; then - echo "Error: $MIX_EXS not found in repo root" - exit 1 + echo "Error: $MIX_EXS not found in repo root" + exit 1 fi # Search and replace `@release_version ""` to new version if grep -q "@release_version" "$MIX_EXS"; then - sed -i.bak -E 's/(@release_version[[:space:]]*")[^"]*/\1'"$VERSION"'/' "$MIX_EXS" - rm -f "$MIX_EXS.bak" + sed -i.bak -E 's/(@release_version[[:space:]]*")[^"]*/\1'"$VERSION"'/' "$MIX_EXS" + rm -f "$MIX_EXS.bak" else - echo "Error: @release_version line not found in $MIX_EXS" - exit 1 + echo "Error: @release_version line not found in $MIX_EXS" + exit 1 fi # Confirm replacement: accept either a literal version string or the module attribute if grep -q "@release_version \"$VERSION\"" "$MIX_EXS"; then - echo "Updated $MIX_EXS to $VERSION" + echo "Updated $MIX_EXS to $VERSION" else - echo "Error: Failed to update version in $MIX_EXS via regex" - exit 1 + echo "Error: Failed to update version in $MIX_EXS via regex" + exit 1 fi # Update version in README.md if present if [ -f "$README" ]; then - sed -i.bak -E "s/:fishjam_protos, \"~> [0-9]+\.[0-9]+\.[0-9]+\"/:fishjam_protos, \"~> $VERSION\"/" "$README" - rm -f "$README.bak" - echo "Updated $README to version $VERSION" + sed -i.bak -E "s/:fishjam_protos, \"~> [0-9]+\.[0-9]+\.[0-9]+\"/:fishjam_protos, \"~> $VERSION\"/" "$README" + rm -f "$README.bak" + echo "Updated $README to version $VERSION" else - echo "⚠️ $README not found, skipping README version update" + echo "⚠️ $README not found, skipping README version update" fi echo "✅ Version bump complete for $VERSION"