File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments