From 2c9ae113f859202285c2fdee4212cda3d10e309b Mon Sep 17 00:00:00 2001 From: npldevfr Date: Tue, 30 Jan 2024 15:30:09 +0100 Subject: [PATCH] fix: script --- scripts/release.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index 932b13d..5d7c38b 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -28,9 +28,9 @@ incrementVersion() { # Use the provided version or increment the current version if [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then - newVersion=$1 + newVersion="v$1" else - newVersion=$(incrementVersion "$currentVersion") + newVersion="v$(incrementVersion "$currentVersion")" fi # Display the new version @@ -39,9 +39,9 @@ echo "Current version: $currentVersion" echo "New version: $newVersion" # Create the tag -git tag "v$newVersion" +git tag "$newVersion" # Push the tag to the remote repository -git push origin "v$newVersion" +git push origin "$newVersion" echo "Release created successfully."