Skip to content

Commit c3b739c

Browse files
authored
Update release.yml
1 parent a268499 commit c3b739c

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@ jobs:
1313
with:
1414
node-version: '16'
1515
- run: npm install
16-
- name: Build package
17-
run: npx vsce package
16+
- name: Publish to Open VSX Registry
17+
uses: HaaLeo/publish-vscode-extension@v1
18+
id: publishToOpenVSX
19+
with:
20+
pat: ${{ secrets.OVSX_TOKEN }}
21+
- name: Publish to Visual Studio Marketplace
22+
uses: HaaLeo/publish-vscode-extension@v1
23+
with:
24+
pat: ${{ secrets.VSCE_TOKEN }}
25+
registryUrl: https://marketplace.visualstudio.com
26+
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
1827
- name: Upload vsix to release
1928
uses: AButler/[email protected]
2029
with:
2130
files: '*.vsix'
2231
repo-token: ${{ secrets.GITHUB_TOKEN }}
23-
- uses: lannonbr/vsce-action@master
24-
if: github.event.release.prerelease == false
25-
with:
26-
args: "publish -p $VSCE_TOKEN"
27-
env:
28-
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}

0 commit comments

Comments
 (0)