Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit c55e363

Browse files
authored
cloudsmith tool does not strip empty arguments, work around (#1188)
1 parent 17991f0 commit c55e363

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

ci/publish_packages.sh

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ cd "$(dirname "$0")/../"
1010

1111
PKG_ROOT="workers/unity/Packages"
1212

13-
if [[ -n "${DRY_RUN-}" ]]; then
14-
EXTRA_CLOUDSMITH_ARGS="--dry-run"
15-
else
16-
EXTRA_CLOUDSMITH_ARGS=""
17-
fi
18-
1913
./init.sh
2014

2115
# Re-publish all packages
@@ -26,9 +20,12 @@ pushd "${PKG_ROOT}" > /dev/null
2620
pushd "${package_dir}" > /dev/null
2721
# Created package is the last line of output.
2822
PACKAGE_NAME=$(npm pack | tail -n 1)
29-
cloudsmith push npm spatialos/gdk-for-unity "${PACKAGE_NAME}" --republish "${EXTRA_CLOUDSMITH_ARGS}"
23+
if [[ -n "${DRY_RUN-}" ]]; then
24+
cloudsmith push npm spatialos/gdk-for-unity "${PACKAGE_NAME}" --republish --dry-run
25+
else
26+
cloudsmith push npm spatialos/gdk-for-unity "${PACKAGE_NAME}" --republish
27+
fi
3028
rm "${PACKAGE_NAME}"
3129
popd > /dev/null
3230
done
3331
popd > /dev/null
34-

0 commit comments

Comments
 (0)