Publish Extension #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Extension | |
on: | |
workflow_dispatch: | |
inputs: | |
vscode_marketplace: | |
description: 'Publish to Visual Studio Marketplace' | |
type: boolean | |
default: true | |
open_vsx: | |
description: 'Publish to Open VSX Registry' | |
type: boolean | |
default: true | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
- name: npm clean install | |
run: | | |
(cd webview-ui ; npm ci) | |
npm ci | |
- name: Build vscode extension | |
run: npm run package | |
- name: Publish to Visual Studio Marketplace | |
if: ${{ github.event.inputs.vscode_marketplace == true }} | |
uses: HaaLeo/publish-vscode-extension@v1 | |
with: | |
pat: ${{ secrets.VSCE_TOKEN }} | |
registryUrl: https://marketplace.visualstudio.com | |
extensionFile: build/nextflow.vsix | |
- name: Publish to Open VSX Registry | |
if: ${{ github.event.inputs.open_vsx == true }} | |
uses: HaaLeo/publish-vscode-extension@v1 | |
with: | |
pat: ${{ secrets.OPEN_VSX_TOKEN }} | |
extensionFile: build/nextflow.vsix |