From ac4fb8b8dfd8b9b52482ba1618011b4fb3a0fef1 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Mon, 10 Oct 2022 17:05:01 +0200 Subject: [PATCH] ci: fix build docs (#13490) --- .github/workflows/build-docs.yml | 7 +++++++ .github/workflows/deploy-docs.yml | 2 ++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 2f561e19f1..933c640c3b 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -24,6 +24,13 @@ jobs: persist-credentials: false fetch-depth: 0 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: "16.x" + + # npm install npm should be removed when https://github.com/npm/cli/issues/4942 is fixed - name: Build docs run: | + npm install -g npm@8.5.5 make build-docs diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index b6c9f05712..6ca6ea9367 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -32,8 +32,10 @@ jobs: with: node-version: "16.x" + # npm install npm should be removed when https://github.com/npm/cli/issues/4942 is fixed - name: Build 🔧 run: | + npm install -g npm@8.5.5 make build-docs - name: Deploy 🚀