File tree Expand file tree Collapse file tree 4 files changed +180
-137
lines changed
Expand file tree Collapse file tree 4 files changed +180
-137
lines changed Original file line number Diff line number Diff line change 1+ name : Build docs
2+
3+ on :
4+ push :
5+
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ env :
10+ ALGOLIA_APP_ID : 123
11+ ALGOLIA_API_KEY : 123
12+ GH_URL : http://example.test
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v4
16+ - name : Setup NodeJS
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version-file : ' .nvmrc'
20+ - uses : pnpm/action-setup@v2
21+ name : Install pnpm
22+ with :
23+ version : 9
24+ run_install : false
25+ - name : Get pnpm store directory
26+ shell : bash
27+ run : |
28+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
29+ - uses : actions/cache@v3
30+ name : Setup pnpm cache
31+ with :
32+ path : ${{ env.STORE_PATH }}
33+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
34+ restore-keys : |
35+ ${{ runner.os }}-pnpm-store-
36+ - name : Install dependencies
37+ run : pnpm install
38+ - name : Build Packages
39+ run : pnpm build:packages
40+ - name : Build Docs
41+ run : pnpm docs:build
Original file line number Diff line number Diff line change 2727 "docusaurus-plugin-typedoc" : " ^1.0.1" ,
2828 "typedoc" : " ^0.25.13" ,
2929 "typedoc-plugin-markdown" : " ~4.0.3" ,
30- "typescript" : " ~5.4.5 "
30+ "typescript" : " ^5.5.3 "
3131 },
3232 "browserslist" : {
3333 "production" : [
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ export function getUserAgentInfo(nav?: NavigatorInfo): string[] {
1818
1919 const browser = getBrowserInfo ( nav ) ;
2020 const os = getOsInfo ( nav ) ;
21- return [ browser , os ] . filter ( ( v ) => v != null ) ;
21+ // The cast below is to cater for TypeScript < 5.5.0
22+ return [ browser , os ] . filter ( ( v ) => v != null ) as string [ ] ;
2223}
2324
2425function getBrowserInfo ( nav : NavigatorInfo ) : string | null {
You can’t perform that action at this time.
0 commit comments