mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-03-12 00:45:28 +00:00
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:
parent
0158eea965
commit
dfca21d239
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
|
||||
|
||||
- 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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user