mirror of
https://github.com/foomo/foomo-docs.git
synced 2025-10-16 12:35:40 +00:00
29 lines
601 B
YAML
29 lines
601 B
YAML
# https://docusaurus.io/docs/deployment#triggering-deployment-with-github-actions
|
|
name: validate
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/setup-node@v5
|
|
with:
|
|
node-version: "20.x"
|
|
|
|
- name: Enable Corepack
|
|
run: corepack enable
|
|
|
|
- name: Test Build
|
|
working-directory: foomo
|
|
run: |
|
|
yarn install --frozen-lockfile
|
|
npm run build
|