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