Skip to content

Commit 6d450d1

Browse files
committed
Refactor code structure for improved readability and maintainability
1 parent 2c86bac commit 6d450d1

File tree

3 files changed

+565
-90
lines changed

3 files changed

+565
-90
lines changed

.github/workflows/publish-vscode-extension.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,14 @@ jobs:
9797
echo "::error::VSCE_PAT secret is not set. Cannot publish to marketplace."
9898
exit 1
9999
fi
100-
npx @vscode/vsce publish --no-yarn --pat "$VSCE_PAT"
100+
# Use the specific VSIX file generated in the Package step
101+
VSIX_NAME=$(ls *.vsix | head -n 1)
102+
if [ -z "$VSIX_NAME" ]; then
103+
echo "::error::No VSIX file found to publish"
104+
exit 1
105+
fi
106+
echo "Publishing $VSIX_NAME..."
107+
npx @vscode/vsce publish --packagePath "$VSIX_NAME" --no-yarn --pat "$VSCE_PAT"
101108
102109
- name: Create GitHub Release
103110
if: inputs.dry_run != true && startsWith(github.ref, 'refs/tags/')

packages/tools/vscode-objectql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
"@types/vscode": "^1.85.0",
223223
"@vscode/test-electron": "^2.3.0",
224224
"typescript": "^5.3.0",
225-
"@vscode/vsce": "^2.22.0"
225+
"@vscode/vsce": "^3.7.1"
226226
},
227227
"extensionDependencies": [
228228
"redhat.vscode-yaml"

0 commit comments

Comments
 (0)