Add GitHub Action to Validate Website Build on All Branches #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Website Build Check | |
on: | |
push: | |
branches: | |
- main | |
- '**' | |
pull_request: | |
jobs: | |
build-website: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm install | |
working-directory: src/website | |
- name: Build website | |
run: npm run build | |
working-directory: src/website |