Skip to content

Commit 77ec8e0

Browse files
committed
force new prerelease
1 parent c5d8214 commit 77ec8e0

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

packages/react-router/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Expose old @remix-run/router API y2
1+
// Expose old @remix-run/router API
22
export type { InitialEntry, Location, Path, To } from "./lib/router/history";
33
export type {
44
HydrationState,

scripts/finish-stable-release.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,33 @@ if [[ -n $(git show-ref refs/heads/changeset-release/release-next) ]]; then
4343
git branch -d changeset-release/release-next
4444
fi
4545

46+
# If this is set when no tags exist the program exits on the TAGS assignment
47+
set +e
48+
49+
PATTERN="@7\.\d\+\.\d\+-pre"
50+
51+
# Don't keep around prerelease tags for all packages - only the primary react-router package
52+
TAGS=$(git tag | grep -e "${PATTERN}" | grep -ve "^react-router@")
53+
54+
55+
if [[ $TAGS == "" ]]; then
56+
echo "No tags to delete, exiting"
57+
exit 0
58+
fi
59+
60+
set -e
61+
62+
NUM_TAGS=$(git tag | grep -e "${PATTERN}" | grep -ve "^react-router@" | wc -l | sed 's/ //g')
63+
TAGS_LINE=$(git tag | grep -e "${PATTERN}" | grep -ve "^react-router@" | tr '\n' ' ')
64+
65+
echo "Found ${NUM_TAGS} tags to delete: ${TAGS_LINE}"
66+
git push origin --delete ${TAGS_LINE}
67+
echo "Pruning local tags"
68+
git fetch --prune --prune-tags
69+
70+
set +e
71+
set +x
72+
4673

4774
set +e
4875
set +x

0 commit comments

Comments
 (0)