diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a81239e..8da1d07 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,16 +13,19 @@ jobs: with: node-version: '16' - run: npm install - - name: Build package - run: npx vsce package + - name: Publish to Open VSX Registry + uses: HaaLeo/publish-vscode-extension@v1 + id: publishToOpenVSX + with: + pat: ${{ secrets.OVSX_TOKEN }} + - name: Publish to Visual Studio Marketplace + uses: HaaLeo/publish-vscode-extension@v1 + with: + pat: ${{ secrets.VSCE_TOKEN }} + registryUrl: https://marketplace.visualstudio.com + extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }} - name: Upload vsix to release uses: AButler/upload-release-assets@v1.0 with: files: '*.vsix' repo-token: ${{ secrets.GITHUB_TOKEN }} - - uses: lannonbr/vsce-action@master - if: github.event.release.prerelease == false - with: - args: "publish -p $VSCE_TOKEN" - env: - VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}