How to ignore tsc error?

my project is build with typescript and some javascript.
And this project is deployed with github-pages, but should deploy it manually. I tried to deploy automatically when something new pushed in master branch, so wrote deploy script.
Normally, the task flow is like this:

yarn build:types
yarn build 

This is the deploy.yml

# 액션의 이름 
name: Storybook Deploy 
# 해당 액션이 실행될 이벤트 정의 : master에 push될때 실행됩니다. 
on:
  push:
    branches:
      - action-test
# 실행될 명령어로 순차적으로 실행됩니다.
jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    steps: 
      - name: Checkout
        uses: actions/checkout@master

      - name: Install and Build
        run: |
          yarn
          rm -rf dist
          yarn build:types
          yarn build
      - name: Deploy
        uses: JamesIves/github-pages-deploy-action@4.1.5
        with: 
          branch: gh-pages
          folder: dist

And error occurred when Install and Build
Here are the errors

$ tsc --emitDeclarationOnly
node_modules/@material-ui/types/index.d.ts(26,54): error TS2694: Namespace 'React' has no exported member 'ComponentProps'.
node_modules/@material-ui/types/index.d.ts(30,46): error TS2694: Namespace 'React' has no exported member 'ComponentProps'.
node_modules/@types/hoist-non-react-statics/index.d.ts(59,29): error TS2694: Namespace 'React' has no exported member 'MemoExoticComponent'.
node_modules/@types/hoist-non-react-statics/index.d.ts(61,35): error TS2694: Namespace 'React' has no exported member 'ForwardRefExoticComponent'.
node_modules/@types/react-dom/index.d.ts(21,43): error TS2305: Module '"react"' has no exported member 'ReactPortal'.
node_modules/@types/react-dom/index.d.ts(94,18): error TS2314: Generic type 'ReactElement<P>' requires 1 type argument(s).
node_modules/@types/react-dom/test-utils/index.d.ts(70,31): error TS2314: Generic type 'ReactElement<P>' requires 1 type argument(s).
node_modules/@types/react-dom/test-utils/index.d.ts(74,21): error TS2314: Generic type 'ReactElement<P>' requires 1 type argument(s).
node_modules/@types/react-dom/test-utils/index.d.ts(186,14): error TS2314: Generic type 'ReactElement<P>' requires 1 type argument(s).
node_modules/@types/react-dom/test-utils/index.d.ts(191,14): error TS2314: Generic type 'ReactElement<P>' requires 1 type argument(s).
node_modules/@types/react-dom/test-utils/index.d.ts(196,14): error TS2314: Generic type 'ReactElement<P>' requires 1 type argument(s).
node_modules/@types/react-dom/test-utils/index.d.ts(201,14): error TS2314: Generic type 'ReactElement<P>' requires 1 type argument(s).

and more than 1000 lines. And it is difficult to fix all of the lines.
when I build it manually, there is no problem to publish it even though the error above occurred. But I think Github Action consider it abnormal to finish the jobs. I’m trying to find the examples like me, but i couldn’t. Can anyone can let me know how to ignore this error and can move on to the next step ?