Deploy failed for front-end website

I have deployed the website last week : learners-mazen-sghaier.netlify.app
Now I made some changes in my github project repository , I keep getting this error that prevents me from updating the website :
6:29:45 PM: Netlify Build
6:29:45 PM: ────────────────────────────────────────────────────────────────
6:29:45 PM: ​
6:29:45 PM: ❯ Version
6:29:45 PM: @netlify/build 29.23.4
6:29:45 PM: ​
6:29:45 PM: ❯ Flags
6:29:45 PM: baseRelDir: true
6:29:45 PM: buildId: 65355bd8598cac59017895e3
6:29:45 PM: deployId: 65355bd8598cac59017895e5
6:29:45 PM: ​
6:29:45 PM: ❯ Current directory
6:29:45 PM: /opt/build/repo/education_platform-front
6:29:45 PM: ​
6:29:45 PM: ❯ Config file
6:29:45 PM: /opt/build/repo/education_platform-front/netlify.toml
6:29:45 PM: ​
6:29:45 PM: ❯ Context
6:29:45 PM: production
6:29:45 PM: ​
6:29:45 PM: ❯ Loading plugins
6:29:45 PM: - @netlify/plugin-lighthouse@5.0.0 from Netlify app
6:29:47 PM: ​
6:29:47 PM: build.command from netlify.toml
6:29:47 PM: ────────────────────────────────────────────────────────────────
6:29:47 PM: ​
6:29:47 PM: $ npm run build
6:29:47 PM: > education_platform-front@0.1.0 build
6:29:47 PM: > react-scripts build
6:29:48 PM: Creating an optimized production build…
6:30:36 PM:
6:30:36 PM: Treating warnings as errors because process.env.CI = true.
6:30:36 PM: Most CI servers set it automatically.
6:30:36 PM:
6:30:36 PM: Failed to compile.
6:30:36 PM:
6:30:36 PM: [eslint]
6:30:36 PM: src/App.jsx
6:30:36 PM: Line 1:17: “useEffect” is defined but never used no-unused-vars
6:30:36 PM: Line 26:52: Imported JSX component Free_Course must be in PascalCase or SCREAMING_SNAKE_CASE react/jsx-pascal-case
6:30:36 PM: src/Students_component/Control.jsx
6:30:36 PM: Line 1:17: “useState” is defined but never used no-unused-vars
6:30:36 PM: src/Students_component/Player.jsx
6:30:36 PM: Line 6:23: “useSelector” is defined but never used no-unused-vars
6:30:36 PM: Line 42:24: “setIsFullScreen” is assigned a value but never used no-unused-vars
6:30:36 PM: src/Students_component/Sidenav.tsx
6:30:36 PM: Line 5:26: “MuiAppBarProps” is defined but never used @typescript-eslint/no-unused-vars
6:30:36 PM: src/Students_component/textfield.tsx
6:30:36 PM: Line 5:10: “ThunkDispatch” is defined but never used @typescript-eslint/no-unused-vars
6:30:36 PM: Line 6:10: “AnyAction” is defined but never used @typescript-eslint/no-unused-vars
6:30:36 PM: Line 20:10: “useDispatch” is defined but never used @typescript-eslint/no-unused-vars
6:30:36 PM: Line 21:10: “updatedUser” is defined but never used @typescript-eslint/no-unused-vars
6:30:36 PM: Line 48:10: “error” is assigned a value but never used @typescript-eslint/no-unused-vars
6:30:36 PM: Line 52:3: Nested block is redundant no-lone-blocks
6:30:36 PM: Line 132:13: Nested block is redundant no-lone-blocks
6:30:36 PM: src/Visitors_components/Content_Page/Content_display.tsx
6:30:36 PM: Line 53:41: The ref value “containerRef.current” will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy “containerRef.current” to a variable inside the effect, and use that variable in the cleanup function react-hooks/exhaustive-deps
6:30:36 PM: src/Visitors_components/Home_Page/About/About.tsx
6:30:36 PM: Line 18:16: “setUser” is assigned a value but never used @typescript-eslint/no-unused-vars
6:30:36 PM: Line 38:6: React Hook useEffect has a missing dependency: “user”. Either include it or remove the dependency array react-hooks/exhaustive-deps
6:30:36 PM: src/Visitors_components/Home_Page/Courses-section/Courses.jsx
6:30:36 PM: Line 38:9: “nav” is assigned a value but never used no-unused-vars
6:30:36 PM: src/Visitors_components/Signup/LogIn.tsx
6:30:36 PM: Line 36:9: “googleSuccess” is assigned a value but never used @typescript-eslint/no-unused-vars
6:30:36 PM: Line 40:9: “googleFailure” is assigned a value but never used @typescript-eslint/no-unused-vars
6:30:36 PM: src/Visitors_pages/courses_page.tsx
6:30:36 PM: Line 13:8: “SupportEngine” is defined but never used @typescript-eslint/no-unused-vars
6:30:36 PM: Line 23:9: Imported JSX component Content_display must be in PascalCase or SCREAMING_SNAKE_CASE react/jsx-pascal-case
6:30:36 PM: Line 25:9: Imported JSX component Content_display must be in PascalCase or SCREAMING_SNAKE_CASE react/jsx-pascal-case
6:30:36 PM: Line 27:9: Imported JSX component Content_display must be in PascalCase or SCREAMING_SNAKE_CASE react/jsx-pascal-case
6:30:36 PM: src/Visitors_pages/home.tsx
6:30:36 PM: Line 20:8: “SupportEngine” is defined but never used @typescript-eslint/no-unused-vars
6:30:36 PM: src/reducers/course.js
6:30:36 PM: Line 1:21: “FETCH_BY_SEARCH” is defined but never used no-unused-vars
6:30:36 PM: Line 28:33: Expected “===” and instead saw “==” eqeqeq
6:30:36 PM: src/store/store.js
6:30:36 PM: Line 1:26: “applyMiddleware” is defined but never used no-unused-vars
6:30:36 PM: Line 1:43: “compose” is defined but never used no-unused-vars
6:30:36 PM: ​
6:30:36 PM: “build.command” failed
6:30:36 PM: ────────────────────────────────────────────────────────────────
6:30:36 PM: ​
6:30:36 PM: Error message
6:30:36 PM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
6:30:36 PM: ​
6:30:36 PM: Error location
6:30:36 PM: In build.command from netlify.toml:
6:30:36 PM: npm run build
6:30:36 PM: ​
6:30:36 PM: Resolved config
6:30:36 PM: build:
6:30:36 PM: base: /opt/build/repo/education_platform-front
6:30:36 PM: command: npm run build
6:30:36 PM: commandOrigin: config
6:30:36 PM: publish: /opt/build/repo/education_platform-front/build
6:30:36 PM: publishOrigin: config
6:30:36 PM: plugins:
6:30:36 PM: - inputs: {}
6:30:36 PM: origin: ui
6:30:36 PM: package: “@netlify/plugin-lighthouse”
6:30:36 PM: redirects:
6:30:36 PM: - from: /*
status: 200
to: /index.html
redirectsOrigin: config
6:30:36 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
6:30:36 PM: Failing build: Failed to build site
6:30:37 PM: Failed during stage “building site”: Build script returned non-zero exit code: 2
6:30:37 PM: Finished processing build request in 1m39.263s

Change your build command to CI= npm run build.