File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed
Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change 5151 if : " startsWith(github.ref, 'refs/tags/')"
5252 needs : package
5353 runs-on : ubuntu-latest
54+ env :
55+ VSCE_PAT : ${{ secrets.VSMARKETPLACE_TOKEN }}
56+ OVSX_PAT : ${{ secrets.OPENVSX_TOKEN }}
5457 steps :
58+ - name : Make sure PATs are accessible.
59+ run : echo $VSCE_PAT | wc -c; echo $OVSX_PAT | wc -c
60+
5561 - name : Check out the repository
5662 uses : actions/checkout@v3
5763
@@ -69,16 +75,16 @@ jobs:
6975 - name : Install dependencies
7076 run : npm ci
7177
72- - name : Install vsce and ovsx
73- run : npm install --save-dev @vscode/vsce ovsx
74-
75- - name : (Visual Studio Marketplace) Login
76- run : echo ${{ secrets.VSMARKETPLACE_TOKEN }} | npx vsce login sgryjp
78+ - name : Install vsce
79+ run : npm install -g @vscode/vsce
7780
78- - name : ( Visual Studio Marketplace) Publish
79- run : npx vsce publish --packagePath ./dist/vscode-stable-sort-*.vsix
81+ - name : Publish to Visual Studio Marketplace
82+ run : vsce publish --packagePath ./dist/vscode-stable-sort-*.vsix
8083 timeout-minutes : 5
8184
82- - name : (Open VSX Repository) Publish
83- run : npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ./dist/vscode-stable-sort-*.vsix
85+ - name : Install ovsx
86+ run : npm install -g ovsx
87+
88+ - name : Publish to Open VSX Repository
89+ run : ovsx publish --packagePath ./dist/vscode-stable-sort-*.vsix
8490 timeout-minutes : 5
You can’t perform that action at this time.
0 commit comments