From 692b3bdb5cf65233b385c546abdfbde2c1bcd4aa Mon Sep 17 00:00:00 2001 From: paulober <44974737+paulober@users.noreply.github.com> Date: Wed, 18 Oct 2023 21:52:27 +0200 Subject: [PATCH] Fix publish script Signed-off-by: paulober <44974737+paulober@users.noreply.github.com> --- scripts/publish.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/publish.sh b/scripts/publish.sh index 9d9eb13..812250c 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -34,8 +34,7 @@ for platform in "${platforms[@]}"; do rm -r "dist/scripts/wrapper_$platform" done -# Find all .vsix files and join them into a space-separated string -package_paths=$(find . -name "*.vsix" -type f -exec echo -n "{} " \;) - -# Publish the packages -npx @vscode/vsce publish --packagePath "$package_paths" +# Find all .vsix files and publish them one by one +find . -name "*.vsix" -type f | while read -r package_path; do + npx @vscode/vsce publish --packagePath "$package_path" +done