File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,17 @@ jobs:
23
23
node-version : ' 20.x'
24
24
cache : ' npm'
25
25
- name : Install vsce
26
- run : npm install -g '@vscode/vsce'
26
+ run : npm install '@vscode/vsce' --save-dev
27
27
- name : Login VSCE
28
- run : echo ${{ secrets.VSCE_PAT }} | vsce login ${{ secrets.VSCE_PUBLISHER }}
28
+ env :
29
+ VSCE_PAT : ${{ secrets.VSCE_PAT }}
30
+ run : vsce login ${{ secrets.VSCE_PUBLISHER }}
29
31
- name : Verify publish access rights
30
- run : vsce verify-pat --pat ${{ secrets.VSCE_PAT }}
32
+ env :
33
+ VSCE_PAT : ${{ secrets.VSCE_PAT }}
34
+ run : vsce verify-pat
31
35
- name : Publish package
32
- run : vsce publish
36
+ run : npm run deploy
33
37
34
38
35
39
Original file line number Diff line number Diff line change 127
127
"watch" : " tsc -watch -p ./" ,
128
128
"pretest" : " npm run compile && npm run lint" ,
129
129
"lint" : " eslint src --ext ts" ,
130
- "test" : " vscode-test"
130
+ "test" : " vscode-test" ,
131
+ "deploy" : " vsce publish"
131
132
},
132
133
"devDependencies" : {
133
134
"@types/vscode" : " ^1.0.0" ,
You can’t perform that action at this time.
0 commit comments