diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d509e59..c6b8cec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,6 +29,13 @@ jobs: run: | yarn lint vsce package + - name: Modify package.json for OVSX + # ms-vscode extensions not available on OpenVSX registry, so remove dependencies + run: | + sed -i 's/"ms-vscode.*",//g' package.json + - name: Package Extension for OVSX + run: | + vsce package -o ovsx-raspberry-pi-pico.vsix - name: Test PAT if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }} env: @@ -43,12 +50,16 @@ jobs: uses: actions/upload-artifact@v4 with: name: raspberry-pi-pico - path: raspberry-pi-pico-*.vsix + path: | + raspberry-pi-pico-*.vsix + ovsx-raspberry-pi-pico.vsix - name: Add Release Asset uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') with: - files: raspberry-pi-pico-*.vsix + files: | + raspberry-pi-pico-*.vsix + ovsx-raspberry-pi-pico.vsix - name: Publish Extension if: startsWith(github.ref, 'refs/tags/') env: @@ -58,4 +69,4 @@ jobs: - name: Publish Extension to OVSX if: startsWith(github.ref, 'refs/tags/') run: | - npx ovsx publish raspberry-pi-pico-*.vsix -p ${{ secrets.OPEN_VSX_PAT }} + npx ovsx publish ovsx-raspberry-pi-pico.vsix -p ${{ secrets.OPEN_VSX_PAT }} diff --git a/package.json b/package.json index 4250dc1..0c1164e 100644 --- a/package.json +++ b/package.json @@ -42,11 +42,11 @@ "Snippets", "Other" ], - "extensionPack": [ - "marus25.cortex-debug", + "extensionDependencies": [ "ms-vscode.cpptools", "ms-vscode.cpptools-extension-pack", - "ms-vscode.vscode-serial-monitor" + "ms-vscode.vscode-serial-monitor", + "marus25.cortex-debug" ], "main": "./dist/extension.cjs", "markdown": "github",