@@ -445,37 +445,6 @@ jobs:
445445 - name : Checkout Repo
446446 uses : actions/checkout@v3
447447
448- - name : Setup Node.js 20.5
449- uses : actions/setup-node@v3
450- with :
451- node-version : 20.5.x
452-
453- - name : Get yarn cache directory path
454- id : yarn-cache-dir-path
455- run : echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
456-
457- - name : Load Yarn cache
458- uses : actions/cache@v3
459- id : yarn_cache_id
460- with :
461- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
462- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
463- restore-keys : |
464- ${{ runner.os }}-yarn
465-
466- - name : Node modules cache
467- uses : actions/cache@v3
468- id : node_modules_cache_id
469- with :
470- path : |
471- node_modules
472- */*/node_modules
473- key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
474-
475- - name : Install Dependencies
476- if : steps.yarn_cache_id.outputs.cache-hit != 'true' || steps.node_modules_cache_id.outputs.cache-hit != 'true'
477- run : yarn install --immutable
478-
479448 - uses : actions/labeler@v4
480449 with :
481450 repo-token : " ${{ secrets.GITHUB_TOKEN }}"
@@ -523,3 +492,22 @@ jobs:
523492 run : yarn danger ci
524493 env :
525494 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
495+
496+ typos :
497+ name : Typos checks
498+ runs-on : ubuntu-latest
499+ steps :
500+ - name : Checkout Repo
501+ uses : actions/checkout@v3
502+
503+ - name : Check for typos
504+ uses : reviewdog/action-misspell@v1
505+ with :
506+ github_token : ${{ secrets.GITHUB_TOKEN }}
507+ locale : " US"
508+ reporter : github-pr-review
509+ level : error
510+ pattern : |
511+ *.md
512+ *.mdx
513+ **/type-docs.json
0 commit comments