Skip to content

Commit 1257e2e

Browse files
committed
Add retries for the VSCode publishing since it has failed a couple times.
1 parent 2556146 commit 1257e2e

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,23 @@ jobs:
165165
path: vscode-ext
166166

167167
- name: Publish to VS Code Marketplace
168-
run: cd vscode-ext && npx vsce publish --packagePath *.vsix --no-dependencies
168+
run: |
169+
for i in 1 2 3; do
170+
cd vscode-ext && npx vsce publish --packagePath *.vsix --no-dependencies && exit 0
171+
echo "Attempt $i failed, retrying in 10s..."
172+
sleep 10
173+
done
174+
exit 1
169175
env:
170176
VSCE_PAT: ${{ secrets.VSCE_PAT }}
171177

172178
- name: Publish to OpenVSX
173-
run: cd vscode-ext && npx ovsx publish --packagePath *.vsix --no-dependencies
179+
run: |
180+
for i in 1 2 3; do
181+
cd vscode-ext && npx ovsx publish --packagePath *.vsix --no-dependencies && exit 0
182+
echo "Attempt $i failed, retrying in 10s..."
183+
sleep 10
184+
done
185+
exit 1
174186
env:
175187
OVSX_PAT: ${{ secrets.OVSX_PAT }}

0 commit comments

Comments
 (0)