diff --git a/scripts/ci/publish-build-artifacts.sh b/scripts/ci/publish-build-artifacts.sh index 9ed2f778db..70a51bf802 100755 --- a/scripts/ci/publish-build-artifacts.sh +++ b/scripts/ci/publish-build-artifacts.sh @@ -92,6 +92,12 @@ function publishPackages { for dir in $PKGS_DIST/*/ do + if [[ ! -f "$dir/package.json" ]]; then + # Only publish directories that contain a `package.json` file. + echo "Skipping $dir, it does not contain a package to be published." + continue + fi + COMPONENT="$(basename ${dir})" # Replace _ with - in component name.