Skip to content

Commit

Permalink
use vsce instead of action to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
nopeslide committed Oct 23, 2021
1 parent 99c5d45 commit d440cd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,10 @@ jobs:
# packagePath: ''

- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v0
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ env.VSIX_PATH }}
packagePath: ''
working-directory: vscode
run: yes | npm run publish
env:
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}

- name: Create Release
id: create_release
Expand Down
3 changes: 2 additions & 1 deletion vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"vscode:package": "npm run build && vsce package",
"webpack": "webpack --mode production",
"dependencies": "cd ../drawio_desktop && npm run build",
"build": "npm run webpack"
"build": "npm run webpack",
"publish": "vsce publish"
},
"devDependencies": {
"@types/node": "^16.11.4",
Expand Down

0 comments on commit d440cd0

Please sign in to comment.