Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,12 @@ jobs:
with:
node-version: "20"


- name: Install Extension Dependencies
run: |
cd extension
npm ci
npm install -g @vscode/vsce
npm install -g @vscode/vsce ovsx

- name: Build Language Server
if: matrix.platform != 'win32'
Expand Down Expand Up @@ -194,20 +195,31 @@ jobs:
with:
node-version: "20"

- name: Install vsce
run: npm install -g @vscode/vsce
- name: Install publishing tools
run: npm install -g @vscode/vsce ovsx

- name: List VSIX Files
run: |
find ./vsix-files -name "*.vsix" | sort

- name: Publish Extension
- name: Publish Extension to VS Code Marketplace
run: |
for vsix in $(find ./vsix-files -name "*.vsix" | sort); do
echo "Publishing $vsix"
echo "Publishing $vsix to VS Code Marketplace"
if [ "${{ github.event.inputs.preRelease }}" = "true" ]; then
vsce publish --pre-release -p ${{ secrets.VSCE_PAT }} --packagePath "$vsix"
else
vsce publish -p ${{ secrets.VSCE_PAT }} --packagePath "$vsix"
fi
done

- name: Publish Extension to Open VSX Registry
run: |
for vsix in $(find ./vsix-files -name "*.vsix" | sort); do
echo "Publishing $vsix to Open VSX Registry"
if [ "${{ github.event.inputs.preRelease }}" = "true" ]; then
ovsx publish "$vsix" -p ${{ secrets.OPEN_VSX_TOKEN }} --pre-release
else
ovsx publish "$vsix" -p ${{ secrets.OPEN_VSX_TOKEN }}
fi
done
2 changes: 1 addition & 1 deletion extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "solana",
"displayName": "Solana",
"description": "VS Code extension for Solana",
"version": "0.1.2",
"version": "0.1.3",
"publisher": "AckeeBlockchain",
"repository": "https://github.com/Ackee-Blockchain/solana-vscode",
"readme": "../README.md",
Expand Down
Loading