From df4b13508664d4c19ffb1cd48c0decde49b995f0 Mon Sep 17 00:00:00 2001 From: Fadumina <78078325+fadss@users.noreply.github.com> Date: Mon, 9 Jan 2023 10:23:37 +0000 Subject: [PATCH] Add WAMR-IDE vscode extension to the Visual Studio Marketplace (#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. --- .github/workflows/build_wamr_vscode_ext.yml | 3 +++ .github/workflows/release_process.yml | 1 + test-tools/wamr-ide/VSCode-Extension/package.json | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wamr_vscode_ext.yml b/.github/workflows/build_wamr_vscode_ext.yml index 81c938e6f..f62a4bc98 100644 --- a/.github/workflows/build_wamr_vscode_ext.yml +++ b/.github/workflows/build_wamr_vscode_ext.yml @@ -32,11 +32,14 @@ jobs: working-directory: test-tools/wamr-ide/VSCode-Extension - name: generate wamr ide vscode extension + env: + credentials: ${{ secrets.TOKEN }} run: | npm install -g vsce rm -rf node_modules npm install vsce package + vsce publish -p ${{ secrets.TOKEN }} working-directory: test-tools/wamr-ide/VSCode-Extension - name: compress the vscode extension diff --git a/.github/workflows/release_process.yml b/.github/workflows/release_process.yml index aae2f890a..824a08231 100644 --- a/.github/workflows/release_process.yml +++ b/.github/workflows/release_process.yml @@ -150,6 +150,7 @@ jobs: release_wamr_ide_vscode_ext: needs: [create_tag, create_release] uses: ./.github/workflows/build_wamr_vscode_ext.yml + secrets: inherit with: upload_url: ${{ needs.create_release.outputs.upload_url }} ver_num: ${{ needs.create_tag.outputs.new_ver }} diff --git a/test-tools/wamr-ide/VSCode-Extension/package.json b/test-tools/wamr-ide/VSCode-Extension/package.json index fa3292c23..9b67e3a1e 100644 --- a/test-tools/wamr-ide/VSCode-Extension/package.json +++ b/test-tools/wamr-ide/VSCode-Extension/package.json @@ -1,6 +1,6 @@ { "name": "wamride", - "publisher": "wamr", + "publisher": "wamr-publisher", "repository": { "url": "https://github.com/bytecodealliance/wasm-micro-runtime/tree/main/test-tools/wamr-ide" },