Skip to content

Commit 6b159d5

Browse files
committed
Set a timeout when publishing to OVSX
1 parent d2d1c1e commit 6b159d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ jobs:
258258
if: github.ref == 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
259259
working-directory: ./editors/code
260260
# token from https://dev.azure.com/rust-analyzer/
261-
run: npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix || true
261+
run: timeout 120 --foreground npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix || true
262262

263263
- name: Publish Extension (Code Marketplace, nightly)
264264
if: github.ref != 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
@@ -268,4 +268,4 @@ jobs:
268268
- name: Publish Extension (OpenVSX, nightly)
269269
if: github.ref != 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
270270
working-directory: ./editors/code
271-
run: npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix || true
271+
run: timeout 120 --foreground npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix || true

0 commit comments

Comments
 (0)