Skip to content

Commit 81423a5

Browse files
committed
pre.json does not exist on stable releases so check didn't work
1 parent 627a6b2 commit 81423a5

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

scripts/changesets-release.sh

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

3-
MODE=$(node -e "console.log(require('./.changeset/pre.json').mode)")
4-
53
# Can only provide a custom --tag when not in prerelease mode
6-
# The prerelease tags come from the pre.json "tag" field
7-
if [ "${MODE}" == "exit" ]; then
8-
echo "Publishing with v6 tag (stable release)"
9-
pnpm exec changeset publish --tag v6
10-
else
4+
# The prerelease tags come from the `pre.json`` "tag" field
5+
if [ -f ".changeset/pre.json" ];
116
echo "Publishing with default changesets tag (pre-release)"
12-
pnpm exec changeset publish
7+
#pnpm exec changeset publish
8+
else
9+
echo "Publishing with v6 tag (stable release)"
10+
#pnpm exec changeset publish --tag v6
1311
fi

0 commit comments

Comments
 (0)