Skip to content

Commit d440cd0

Browse files
committed
use vsce instead of action to publish
1 parent 99c5d45 commit d440cd0

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,10 @@ jobs:
6464
# packagePath: ''
6565

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

7472
- name: Create Release
7573
id: create_release

vscode/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"vscode:package": "npm run build && vsce package",
2323
"webpack": "webpack --mode production",
2424
"dependencies": "cd ../drawio_desktop && npm run build",
25-
"build": "npm run webpack"
25+
"build": "npm run webpack",
26+
"publish": "vsce publish"
2627
},
2728
"devDependencies": {
2829
"@types/node": "^16.11.4",

0 commit comments

Comments
 (0)