Skip to content

Commit 796cdff

Browse files
committed
Update tags logic in finish release script
1 parent 07876f8 commit 796cdff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/finish-stable-release.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@ fi
4646
# If this is set when no tags exist the program exits on the TAGS assignment
4747
set +e
4848

49+
echo "Pruning tags before looking for tags to delete:"
50+
git fetch --prune --prune-tags
51+
4952
PATTERN="@7\.\d\+\.\d\+-pre"
5053

51-
# Don't keep around prerelease tags for all packages - only the primary react-router package
54+
# Don't keep around prerelease tags for all packages - only the `react-router` package
5255
TAGS=$(git tag | grep -e "${PATTERN}" | grep -ve "^react-router@")
5356

54-
5557
if [[ $TAGS == "" ]]; then
5658
echo "No tags to delete, exiting"
5759
exit 0

0 commit comments

Comments
 (0)