Update validate.yml

This commit is contained in:
Kevin Franklin Kim 2025-09-12 16:03:58 +02:00 committed by GitHub
parent 8cb7984020
commit 5449d6fd6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,26 +1,26 @@
# https://docusaurus.io/docs/deployment#deploying-to-github-pages
# 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@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-node@v5
with:
node-version: "20.x"
cache: yarn
- name: Test Build
working-directory: foomo
run: |
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
yarn install --frozen-lockfile
npm run build