Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 27 additions & 6 deletions .github/workflows/release-vscode-companion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,17 @@ jobs:
echo "Publishing to Microsoft Marketplace..."
for vsix in vsix-artifacts/*.vsix; do
echo "Publishing: ${vsix}"
vsce publish --packagePath "${vsix}" --pat "${VSCE_PAT}" --skip-duplicate
for attempt in 1 2 3; do
if vsce publish --packagePath "${vsix}" --pat "${VSCE_PAT}" --skip-duplicate; then
break
fi
if [[ ${attempt} -eq 3 ]]; then
echo "Failed to publish ${vsix} after 3 attempts"
exit 1
fi
echo "Attempt ${attempt} failed, retrying in 15s..."
sleep 15
done
done

- name: 'Publish to OpenVSX'
Expand All @@ -325,11 +335,22 @@ jobs:
echo "Publishing to OpenVSX..."
for vsix in vsix-artifacts/*.vsix; do
echo "Publishing: ${vsix}"
if [[ "${{ needs.prepare.outputs.is_preview }}" == "true" ]]; then
ovsx publish "${vsix}" --pat "${OVSX_TOKEN}" --pre-release
else
ovsx publish "${vsix}" --pat "${OVSX_TOKEN}"
fi
for attempt in 1 2 3; do
if [[ "${{ needs.prepare.outputs.is_preview }}" == "true" ]]; then
publish_cmd=(ovsx publish "${vsix}" --pat "${OVSX_TOKEN}" --pre-release --skip-duplicate)
else
publish_cmd=(ovsx publish "${vsix}" --pat "${OVSX_TOKEN}" --skip-duplicate)
fi
if "${publish_cmd[@]}"; then
break
fi
if [[ ${attempt} -eq 3 ]]; then
echo "Failed to publish ${vsix} after 3 attempts"
exit 1
fi
echo "Attempt ${attempt} failed, retrying in 15s..."
sleep 15
done
done

- name: 'Upload all VSIXes as release artifacts (dry run)'
Expand Down
Loading