mirror of
https://github.com/foomo/foomo-docs.git
synced 2025-10-16 12:35:40 +00:00
Update validate.yml
This commit is contained in:
parent
8cb7984020
commit
5449d6fd6b
20
.github/workflows/validate.yml
vendored
20
.github/workflows/validate.yml
vendored
@ -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
|
name: validate
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate:
|
validate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-node@v1
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: "20.x"
|
node-version: "20.x"
|
||||||
|
cache: yarn
|
||||||
|
|
||||||
- name: Test Build
|
- name: Test Build
|
||||||
working-directory: foomo
|
working-directory: foomo
|
||||||
run: |
|
run: |
|
||||||
if [ -e yarn.lock ]; then
|
yarn install --frozen-lockfile
|
||||||
yarn install --frozen-lockfile
|
|
||||||
elif [ -e package-lock.json ]; then
|
|
||||||
npm ci
|
|
||||||
else
|
|
||||||
npm i
|
|
||||||
fi
|
|
||||||
npm run build
|
npm run build
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user