Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nixel2007 authored Jan 9, 2024
1 parent a268499 commit c3b739c
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit c3b739c

Please sign in to comment.