Skip to content

Publish Extension

Publish Extension #14

Workflow file for this run

name: Publish Extension
on:
workflow_dispatch:
inputs:
version:
description: 'Language server version'
required: 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: npm ci
- name: Download language server JAR
run: |
mkdir -p language-server/build/libs
wget -P language-server/build/libs https://github.com/nextflow-io/language-server/releases/download/$VERSION/language-server-all.jar
env:
VERSION: ${{ github.event.inputs.version }}
- name: Build vscode extension
run: ./gradlew build
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
extensionFile: build/nextflow.vsix
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VSCE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: build/nextflow.vsix