From ef52c46c1d35b93a4e625524ccafcc152d2e609b Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Fri, 18 Feb 2022 12:38:06 +0100 Subject: [PATCH] update node version --- .github/workflows/documentation.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 747b9ad879..f78e95528f 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -20,7 +20,8 @@ jobs: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: - node-version: '12.x' + node-version: 14.x + cache: yarn - name: Test Build run: | cd website @@ -41,13 +42,19 @@ jobs: - uses: actions/setup-node@v1 with: - node-version: '12.x' - + node-version: 14.x + cache: yarn - name: 🔨 Build run: | cd website + if [ -e yarn.lock ]; then yarn install --frozen-lockfile - yarn build + elif [ -e package-lock.json ]; then + npm ci + else + npm i + fi + npm run build - name: 📂 Sync files uses: SamKirkland/FTP-Deploy-Action@4.0.0