1515 - uses : actions/checkout@v3
1616 - uses : actions/setup-node@v3
1717 with :
18- node-version : 14
18+ node-version : 16
1919 - uses : actions/cache@v3
2020 id : cache
2121 with :
8686 - uses : actions/checkout@v3
8787 - uses : actions/setup-node@v3
8888 with :
89- node-version : 14
89+ node-version : 16
9090 - uses : actions/cache@v3
9191 id : cache
9292 with :
9797 run : yarn install
9898 - name : Build
9999 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
100110 - name : Pack
101111 run : yarn pack
102112 - name : Archive Artifacts
@@ -106,6 +116,45 @@ jobs:
106116 path : |
107117 ${{ github.workspace }}/*.tgz
108118
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+
109158 job_bundle :
110159 name : Bundle
111160 runs-on : ubuntu-latest
@@ -120,7 +169,7 @@ jobs:
120169 - uses : actions/checkout@v3
121170 - uses : actions/setup-node@v3
122171 with :
123- node-version : ' 14 '
172+ node-version : 16
124173 - name : Cache Dependencies
125174 uses : actions/cache@v3
126175 id : cache
0 commit comments