Skip to content

Commit ae1bb36

Browse files
committed
Update script for release
1 parent ebe340d commit ae1bb36

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Date: YYYY-MM-DD
230230

231231
## v6.30.1
232232

233-
Date: 2025-05-19
233+
Date: 2025-05-20
234234

235235
### Patch Changes
236236

scripts/changesets-release.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#!/bin/bash
22

3+
PACKAGE="./packages/react-router/package.json"
4+
IS_PRERELEASE=$(node -e "console.log(/-pre/.test(require('${PACKAGE}').version))")
5+
36
# Can only provide a custom --tag when not in prerelease mode
47
# The prerelease tags come from the `pre.json`` "tag" field
5-
if [ -f ".changeset/pre.json" ];
8+
if [ ${IS_PRERELEASE} == "true" ]; then
69
echo "Publishing with default changesets tag (pre-release)"
710
pnpm exec changeset publish
811
else

0 commit comments

Comments
 (0)