File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # VS Code Extension Release Workflow - Fixed Version
1+ # VS Code Extension Release Workflow - Final Fixed Version
22
33name : Release VS Code Extension
44
@@ -124,14 +124,17 @@ jobs:
124124 echo "No build/compile script found, skipping build step"
125125 fi
126126
127- # Package the extension
127+ # Package the extension with dependency fix
128128 - name : Package extension
129129 id : package
130130 run : |
131+ # Clean up any problematic dependencies first
132+ npm ls --production --parseable --depth=99999 --loglevel=error || true
133+
131134 if [ -f "package.json" ] && grep -q '"package"' package.json; then
132- pnpm run package
135+ pnpm run package --no-dependencies
133136 else
134- # Use vsce directly if no package script
137+ # Use vsce directly if no package script with production dependencies flag
135138 npx vsce package --no-dependencies
136139 fi
137140
You can’t perform that action at this time.
0 commit comments