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 627a6b2 commit 81423a5Copy full SHA for 81423a5
scripts/changesets-release.sh
@@ -1,13 +1,11 @@
1
#!/bin/bash
2
3
-MODE=$(node -e "console.log(require('./.changeset/pre.json').mode)")
4
-
5
# 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
+# The prerelease tags come from the `pre.json`` "tag" field
+if [ -f ".changeset/pre.json" ];
11
echo "Publishing with default changesets tag (pre-release)"
12
- pnpm exec changeset publish
+ #pnpm exec changeset publish
+else
+ echo "Publishing with v6 tag (stable release)"
+ #pnpm exec changeset publish --tag v6
13
fi
0 commit comments