From dfca21d2397b5d777496676e3b3f6e93b6366788 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 19 Apr 2023 20:39:01 +0900 Subject: [PATCH] build_wamr_vscode_ext.yml: vsce publish only on the official repo (#2130) This makes it simpler to test workflow files on a fork. --- .github/workflows/build_wamr_vscode_ext.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_wamr_vscode_ext.yml b/.github/workflows/build_wamr_vscode_ext.yml index 378aebba..297dc9b9 100644 --- a/.github/workflows/build_wamr_vscode_ext.yml +++ b/.github/workflows/build_wamr_vscode_ext.yml @@ -32,13 +32,16 @@ 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 + working-directory: test-tools/wamr-ide/VSCode-Extension + + - name: publish wamr ide vscode extension to the vsce marketplace + if: ${{ github.repository == 'bytecodealliance/wasm-micro-runtime' }} + run: | vsce publish -p ${{ secrets.TOKEN }} working-directory: test-tools/wamr-ide/VSCode-Extension