Skip to content

Commit

Permalink
Merge pull request #352 from mre/issue/351
Browse files Browse the repository at this point in the history
Add a workflow for publishing an extension to open-vsx.org
  • Loading branch information
VladBrok authored Jun 11, 2023
2 parents 2820140 + e29a4ee commit 7dd156f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,17 @@ jobs:
with:
name: package

- name: Vscode release plugin
uses: JCofman/vscodeaction@master
env:
PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
extensionFile: package.vsix
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
args: publish -p $PUBLISHER_TOKEN -i package.vsix
pat: ${{ secrets.PUBLISHER_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: package.vsix

pre-release:
if: endsWith(github.ref, '-pre')
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "snippet",
"displayName": "Snippet",
"description": "Insert a snippet from cht.sh for Python, JavaScript, Ruby, C#, Go, Rust (and any other language)",
"version": "1.0.1",
"version": "1.0.2",
"publisher": "vscode-snippet",
"engines": {
"vscode": "^1.74.0"
Expand Down

0 comments on commit 7dd156f

Please sign in to comment.