fix: 🐛 kill server before trying to delete exe on windows

This commit is contained in:
Nate Sesti 2023-08-09 21:37:50 -07:00
parent 64552dc881
commit 286fb0e20e

View file

@ -138,7 +138,9 @@ jobs:
# Package again and build+upload the .vsix
- name: Remove exe directory (Windows)
run: Remove-Item -Path "extension/server/exe" -Recurse -Force
run: |
FOR /F "tokens=5" %a IN ('netstat -ano ^| findstr "65432"') DO taskkill /PID %a /F
Remove-Item -Path "extension/server/exe" -Recurse -Force
if: matrix.os == 'windows-latest'
- name: Remove exe directory (Mac/Linux)