From 5449d6fd6bddca3a1c1863cb10f55183c0b31fbd Mon Sep 17 00:00:00 2001 From: Kevin Franklin Kim Date: Fri, 12 Sep 2025 16:03:58 +0200 Subject: [PATCH] Update validate.yml --- .github/workflows/validate.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 11f9681..23207ad 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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