We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07876f8 commit 796cdffCopy full SHA for 796cdff
scripts/finish-stable-release.sh
@@ -46,12 +46,14 @@ fi
46
# If this is set when no tags exist the program exits on the TAGS assignment
47
set +e
48
49
+echo "Pruning tags before looking for tags to delete:"
50
+git fetch --prune --prune-tags
51
+
52
PATTERN="@7\.\d\+\.\d\+-pre"
53
-# 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
55
TAGS=$(git tag | grep -e "${PATTERN}" | grep -ve "^react-router@")
56
-
57
if [[ $TAGS == "" ]]; then
58
echo "No tags to delete, exiting"
59
exit 0
0 commit comments