Skip to content

fix: remove nginx config #1016

fix: remove nginx config

fix: remove nginx config #1016

Workflow file for this run

---
name: Check Docusaurus Build
on: push
jobs:
check-build:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/[email protected]
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: v18.18.0
cache: npm
- name: Cache Node.js packages
id: cache-npm
uses: actions/[email protected]
env:
cache-name: cache-node-modules
with:
path: "**/node_modules"
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: Install Dependencies
run: npm ci
- name: Build Docusaurus
run: npm run build 2> >(tee build.error)
- name: Check if build has warnings
run: cat build.error | grep "\[WARNING\]" && echo "::error::Fix the warnings" && exit 1 || exit 0