10
10
11
11
name : Deploy Extension
12
12
jobs :
13
- deploy :
13
+ build-vsix :
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- uses : actions/checkout@v4
@@ -27,23 +27,51 @@ jobs:
27
27
with :
28
28
name : shiny-vscode
29
29
path : " shiny*.vsix"
30
+
31
+ publish-open-vsx :
32
+ runs-on : ubuntu-latest
33
+ if : ${{
34
+ (github.event_name == 'push' && github.repository_owner == 'posit-dev') ||
35
+ github.event.pull_request.head.repo.fork == false
36
+ }}
37
+ needs :
38
+ - build-vsix
39
+ steps :
40
+ - uses : actions/checkout@v4
41
+ - uses : actions/setup-node@v4
42
+ with :
43
+ node-version : " 18.x"
44
+ - run : yarn install --immutable --immutable-cache --check-cache
45
+
46
+ - name : Build Extension
47
+ run : yarn vsix
30
48
31
49
- name : Publish to Open VSX Registry
32
50
uses : HaaLeo/publish-vscode-extension@v1
33
- if : ${{
34
- (github.event_name == 'push' && github.repository_owner == 'posit-dev') ||
35
- github.event.pull_request.head.repo.fork == false
36
- }}
37
51
with :
38
52
pat : ${{ secrets.OPEN_VSX_TOKEN }}
39
53
dryRun : ${{ !(github.event_name == 'push' && github.ref_type == 'tag') }}
54
+
55
+ publish-vscode-marketplace :
56
+ runs-on : ubuntu-latest
57
+ if : ${{
58
+ (github.event_name == 'push' && github.repository_owner == 'posit-dev') ||
59
+ github.event.pull_request.head.repo.fork == false
60
+ }}
61
+ needs :
62
+ - build-vsix
63
+ steps :
64
+ - uses : actions/checkout@v4
65
+ - uses : actions/setup-node@v4
66
+ with :
67
+ node-version : " 18.x"
68
+ - run : yarn install --immutable --immutable-cache --check-cache
40
69
70
+ - name : Build Extension
71
+ run : yarn vsix
72
+
41
73
- name : Publish to Visual Studio Marketplace
42
74
uses : HaaLeo/publish-vscode-extension@v1
43
- if : ${{
44
- (github.event_name == 'push' && github.repository_owner == 'posit-dev') ||
45
- github.event.pull_request.head.repo.fork == false
46
- }}
47
75
with :
48
76
pat : ${{ secrets.VSCE_PAT }}
49
77
registryUrl : https://marketplace.visualstudio.com
0 commit comments