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