fix(ci): Try building package before deleting dependencies for vscode (#14916)

* fix(ci): Do not prebuild ts-plugin after deleting node_modules in vscode publishing

* fix: try another strategy
This commit is contained in:
Erika
2025-11-27 17:22:18 +01:00
committed by GitHub
parent 0a2fe43780
commit f00aa2bf16
2 changed files with 7 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
---
'astro-vscode': patch
---
Retry failed publish (again)

View File

@@ -73,14 +73,13 @@ jobs:
if: steps.vscode-published.outputs.published == 'true'
working-directory: ./packages/language-tools/vscode
run: |
npm run build:grammar
rm -rf node_modules
# Also delete root package.json and node_modules to avoid vsce picking up monorepo info
# Also delete root package.json and node_modules to avoid vsce picking up any monorepo info
rm ../../../package.json
rm -rf ../../../node_modules
sleep 60s # wait for npm registry to update
npm i --workspaces=false # vsce does not support pnpm, so we need to pretend this is not a monorepo and use npm
npm run build
npm run build:grammar
- name: Publish to VSCode Marketplace
if: steps.vscode-published.outputs.published == 'true'