15
15
- uses : actions/checkout@v3
16
16
- uses : actions/setup-node@v3
17
17
with :
18
- node-version : 14
18
+ node-version : 16
19
19
- uses : actions/cache@v3
20
20
id : cache
21
21
with :
86
86
- uses : actions/checkout@v3
87
87
- uses : actions/setup-node@v3
88
88
with :
89
- node-version : 14
89
+ node-version : 16
90
90
- uses : actions/cache@v3
91
91
id : cache
92
92
with :
97
97
run : yarn install
98
98
- name : Build
99
99
run : yarn build
100
+ - name : Archive dist
101
+ uses : actions/upload-artifact@v3
102
+ with :
103
+ name : dist
104
+ path : dist
105
+ - name : Archive ts3.8
106
+ uses : actions/upload-artifact@v3
107
+ with :
108
+ name : ts3.8
109
+ path : ts3.8
100
110
- name : Pack
101
111
run : yarn pack
102
112
- name : Archive Artifacts
@@ -106,6 +116,45 @@ jobs:
106
116
path : |
107
117
${{ github.workspace }}/*.tgz
108
118
119
+ job_type_check :
120
+ name : Type Check Typescript 3.8
121
+ runs-on : ubuntu-latest
122
+ needs : [job_build]
123
+ steps :
124
+ - uses : actions/checkout@v3
125
+ - uses : actions/setup-node@v3
126
+ with :
127
+ node-version : 16
128
+ - uses : actions/cache@v3
129
+ id : cache
130
+ with :
131
+ path : test/typescript/ts3.8/node_modules
132
+ key : ${{ runner.os }}-${{ github.sha }}-ts3.8
133
+ - name : Download dist
134
+ uses : actions/download-artifact@v3
135
+ with :
136
+ name : dist
137
+ path : dist
138
+ - name : Download ts3.8
139
+ uses : actions/download-artifact@v3
140
+ with :
141
+ name : ts3.8
142
+ path : ts3.8
143
+ - name : Install Global Dependencies
144
+ run : yarn global add yalc
145
+ - name : Publish SDK
146
+ run : yalc publish
147
+ - name : Install SDK
148
+ working-directory : test/typescript/ts3.8
149
+ run : yalc add @sentry/react-native
150
+ - name : Install Dependencies
151
+ if : ${{ steps.cache.outputs['cache-hit'] != 'true' }}
152
+ working-directory : test/typescript/ts3.8
153
+ run : yarn install
154
+ - name : Type Check
155
+ working-directory : test/typescript/ts3.8
156
+ run : yarn type-check
157
+
109
158
job_bundle :
110
159
name : Bundle
111
160
runs-on : ubuntu-latest
@@ -120,7 +169,7 @@ jobs:
120
169
- uses : actions/checkout@v3
121
170
- uses : actions/setup-node@v3
122
171
with :
123
- node-version : ' 14 '
172
+ node-version : 16
124
173
- name : Cache Dependencies
125
174
uses : actions/cache@v3
126
175
id : cache
0 commit comments