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 ae70695 commit 7f435e2Copy full SHA for 7f435e2
scripts/publish.sh
@@ -105,12 +105,17 @@ cat CHANGELOG.md >> "${RELEASE_NOTES_FILE}"
105
echo "Made the release notes."
106
107
echo "Publishing to npm..."
108
-if [[ $DRY_RUN != "" ]]; then
+PUBLISH_ARGS=()
109
+if [[ -n "$DRY_RUN" ]]; then
110
echo "DRY RUN: running publish with --dry-run"
- npm publish --dry-run
111
-else
112
- npm publish
+ PUBLISH_ARGS+=(--dry-run)
113
fi
+
114
+if [[ -n "$PRE_RELEASE" ]]; then
115
+ PUBLISH_ARGS+=(--tag next)
116
+fi
117
118
+npm publish "${PUBLISH_ARGS[@]}"
119
echo "Published to npm."
120
121
if [[ $PRE_RELEASE != "" ]]; then
0 commit comments