Skip to content

Commit 2301202

Browse files
committed
fix(release): Fix the release script to correctly tag.
1 parent fb2b6b6 commit 2301202

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/release.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ if ! git diff --quiet HEAD 2>/dev/null; then
4040
fi
4141

4242
# Check tag doesn't already exist
43-
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
44-
echo "ERROR: Tag v$VERSION already exists"
43+
if git rev-parse "$VERSION" >/dev/null 2>&1; then
44+
echo "ERROR: Tag $VERSION already exists"
4545
exit 1
4646
fi
4747

@@ -61,10 +61,10 @@ git add Info.plist
6161
git commit -m "chore(release): bump version to $VERSION"
6262

6363
# Create annotated tag
64-
git tag -a "v$VERSION" -m "SAM $VERSION"
64+
git tag -a "$VERSION" -m "SAM $VERSION"
6565

6666
echo ""
67-
echo "Done. Version $VERSION committed and tagged as v$VERSION."
67+
echo "Done. Version $VERSION committed and tagged as $VERSION."
6868
echo ""
6969
echo "Next steps:"
7070
echo " git push origin main --tags # Push to trigger CI"

0 commit comments

Comments
 (0)