@@ -158,13 +158,10 @@ jobs:
158158 - " 23" # current
159159 - " 22" # active LTS
160160 - " 20"
161- - " 18"
162- - " 16"
163- - " 14"
164- - " 14.0.0" # lowest supported
161+ - " 20.18.0" # lowest supported
165162 os :
166163 - ubuntu-latest
167- - macos-13 # macos- latest has issues with node14
164+ - macos-latest
168165 - windows-latest
169166 timeout-minutes : 10
170167 steps :
@@ -186,18 +183,9 @@ jobs:
186183 ' 23' | '22')
187184 npm i -g npm@^11
188185 ;;
189- ' 20' | '18 ')
186+ ' 20' | '20.18.0 ')
190187 npm i -g npm@^10
191188 ;;
192- ' 16' )
193- npm i -g npm@^9
194- ;;
195- ' 14' )
196- npm i -g npm@^8
197- ;;
198- ' 14.0.0' )
199- npm i -g npm@^7
200- ;;
201189 esac
202190 - name : setup project
203191 shell : bash
@@ -211,26 +199,6 @@ jobs:
211199 # and might utilize `npm_config_engine_strict=false`
212200
213201 dev_constraints=' npm-run-all2 c8 mocha fast-glob rimraf '
214- # as long as npm cannot auto-resolve engine-constraints, we need to help here
215- case "$NODE_VERSION" in
216- '16')
217- dev_constraints="${dev_constraints/ c8 / c8@^9 }"
218- dev_constraints="${dev_constraints/ rimraf / rimraf@^4 }"
219- export npm_config_engine_strict=false
220- ;;
221- '14')
222- dev_constraints="${dev_constraints/ c8 / c8@^9 }"
223- dev_constraints="${dev_constraints/ npm-run-all2 / npm-run-all2@^5 }"
224- dev_constraints="${dev_constraints/ rimraf / rimraf@^4 }"
225- export npm_config_engine_strict=false
226- ;;
227- '14.0.0')
228- dev_constraints="${dev_constraints/ c8 / c8@^8 }"
229- dev_constraints="${dev_constraints/ npm-run-all2 / npm-run-all2@^5 }"
230- dev_constraints="${dev_constraints/ rimraf / rimraf@^4 }"
231- export npm_config_engine_strict=false
232- ;;
233- esac
234202 echo "::group::install prod"
235203 npm_config_engine_strict=false npm i --ignore-scripts --include=optional --omit=dev --only=prod --production --loglevel=silly
236204 echo "::endgroup::"
@@ -396,7 +364,7 @@ jobs:
396364 include :
397365 - # lowest reasonable number that works
398366 typescript-version : ' ^4.0'
399- nodeTypes-version : ' ^14 '
367+ nodeTypes-version : ' ^20 '
400368 js-type : ' cjs'
401369 env :
402370 EXAMPLE_DIR : examples/node/typescript/example.${{ matrix.js-type }}
0 commit comments