build_wamr_vscode_ext.yml: vsce publish only on the official repo (#2130)
This makes it simpler to test workflow files on a fork.
This commit is contained in:
7
.github/workflows/build_wamr_vscode_ext.yml
vendored
7
.github/workflows/build_wamr_vscode_ext.yml
vendored
@ -32,13 +32,16 @@ jobs:
|
|||||||
working-directory: test-tools/wamr-ide/VSCode-Extension
|
working-directory: test-tools/wamr-ide/VSCode-Extension
|
||||||
|
|
||||||
- name: generate wamr ide vscode extension
|
- name: generate wamr ide vscode extension
|
||||||
env:
|
|
||||||
credentials: ${{ secrets.TOKEN }}
|
|
||||||
run: |
|
run: |
|
||||||
npm install -g vsce
|
npm install -g vsce
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
npm install
|
npm install
|
||||||
vsce package
|
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 }}
|
vsce publish -p ${{ secrets.TOKEN }}
|
||||||
working-directory: test-tools/wamr-ide/VSCode-Extension
|
working-directory: test-tools/wamr-ide/VSCode-Extension
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user