Workflow file for this run
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: Release vsix to OpenVSX and VSCode marketplace | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| release: | |
| name: "Release" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| - name: Set Node.js 10.x | |
| uses: actions/setup-node@v5 | |
| with: | |
| version: 14.x | |
| - name: npm install | |
| run: npm install | |
| - name: typescript | |
| run: npm run compile | |
| - name: Publish to Open VSX Registry | |
| uses: HaaLeo/publish-vscode-extension@v2 | |
| id: publishToOpenVSX | |
| with: | |
| pat: ${{ secrets.OPEN_VSX_TOKEN }} | |
| - name: Publish to Visual Studio Marketplace | |
| uses: HaaLeo/publish-vscode-extension@v2 | |
| with: | |
| pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} | |
| registryUrl: https://marketplace.visualstudio.com | |
| extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }} | |
| packagePath: '.' | |
| - name: Upload | |
| uses: djn24/add-asset-to-release@v1 | |
| with: | |
| token: ${{secrets.GITHUB_TOKEN}} | |
| path: ${{ steps.publishToOpenVSX.outputs.vsixPath }} |