Skip to content

Commit

Permalink
fix: script
Browse files Browse the repository at this point in the history
  • Loading branch information
npldevfr committed Jan 30, 2024
1 parent 940a43b commit 2c9ae11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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."

0 comments on commit 2c9ae11

Please sign in to comment.