Skip to content

Commit df4b135

Browse files
authored
Add WAMR-IDE vscode extension to the Visual Studio Marketplace (bytecodealliance#1868)
Publish an extension to the visual studio marketplace using a secret token. This allows for automation to take place because downloading and installing the extension is a manual process so it'd be simpler if the extension was published automatically through the visual studio marketplace.
1 parent 1f4580f commit df4b135

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/build_wamr_vscode_ext.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ jobs:
3232
working-directory: test-tools/wamr-ide/VSCode-Extension
3333

3434
- name: generate wamr ide vscode extension
35+
env:
36+
credentials: ${{ secrets.TOKEN }}
3537
run: |
3638
npm install -g vsce
3739
rm -rf node_modules
3840
npm install
3941
vsce package
42+
vsce publish -p ${{ secrets.TOKEN }}
4043
working-directory: test-tools/wamr-ide/VSCode-Extension
4144

4245
- name: compress the vscode extension

.github/workflows/release_process.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ jobs:
150150
release_wamr_ide_vscode_ext:
151151
needs: [create_tag, create_release]
152152
uses: ./.github/workflows/build_wamr_vscode_ext.yml
153+
secrets: inherit
153154
with:
154155
upload_url: ${{ needs.create_release.outputs.upload_url }}
155156
ver_num: ${{ needs.create_tag.outputs.new_ver }}

test-tools/wamr-ide/VSCode-Extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wamride",
3-
"publisher": "wamr",
3+
"publisher": "wamr-publisher",
44
"repository": {
55
"url": "https://github.com/bytecodealliance/wasm-micro-runtime/tree/main/test-tools/wamr-ide"
66
},

0 commit comments

Comments
 (0)