Skip to content

Document Azure usage (#812) #1161

Document Azure usage (#812)

Document Azure usage (#812) #1161

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