File tree Expand file tree Collapse file tree 1 file changed +15
-26
lines changed Expand file tree Collapse file tree 1 file changed +15
-26
lines changed Original file line number Diff line number Diff line change 66 types : [published]
77
88jobs :
9- build :
10- name : Build
9+ vsce :
10+ name : VS Code Marketplace
1111 runs-on : ubuntu-latest
1212 timeout-minutes : 10
13+ environment :
14+ name : VS Code Marketplace
15+ url : https://marketplace.visualstudio.com/items?itemName=johnbillion.vscode-wordpress-hooks
1316 steps :
1417 - name : checkout repo
1518 uses : actions/checkout@v3
@@ -23,42 +26,28 @@ jobs:
2326 - name : clean install dependencies
2427 run : npm ci
2528
26- - name : upload artifact for deployment job
27- uses : actions/upload-artifact@v3
28- with :
29- name : build
30- path : .
31-
32- vsce :
33- name : VS Code Marketplace
34- runs-on : ubuntu-latest
35- timeout-minutes : 10
36- needs : build
37- environment :
38- name : VS Code Marketplace
39- url : https://marketplace.visualstudio.com/items?itemName=johnbillion.vscode-wordpress-hooks
40- steps :
41- - name : download artifact from build job
42- uses : actions/download-artifact@v3
43- with :
44- name : build
45-
4629 - name : deploy
4730 run : npm run deploy-vsce -- -p ${{ secrets.VSCE_TOKEN }}
4831
4932 openvsx :
5033 name : Open VSX
5134 runs-on : ubuntu-latest
5235 timeout-minutes : 10
53- needs : build
5436 environment :
5537 name : Open VSX Registry
5638 url : https://open-vsx.org/extension/johnbillion/vscode-wordpress-hooks
5739 steps :
58- - name : download artifact from build job
59- uses : actions/download-artifact@v3
40+ - name : checkout repo
41+ uses : actions/checkout@v3
42+
43+ - name : setup node
44+ uses : actions/setup-node@v3
6045 with :
61- name : build
46+ node-version-file : ' .nvmrc'
47+ cache : npm
48+
49+ - name : clean install dependencies
50+ run : npm ci
6251
6352 - name : deploy
6453 run : npm run deploy-openvsx -- -p ${{ secrets.OVSX_TOKEN }}
You can’t perform that action at this time.
0 commit comments