From 6a18f6fb4c3f638037071c762c07cecb30138e25 Mon Sep 17 00:00:00 2001 From: bbourgeois Date: Fri, 1 Nov 2024 19:45:41 +0100 Subject: [PATCH] build: add documentation build and upload steps for Node.js 20.x --- .github/workflows/nodejs.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index ad448f1..d6d508c 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -45,3 +45,15 @@ jobs: # Run tests - name: Run tests run: yarn test + + # Build documentation only for Node.js 20.x + - name: Build documentation + if: ${{ matrix.node-version }} == '20.x' + run: yarn build:docs + + # Upload documentation artifact (only for Node.js 20.x) + - name: Upload docs + if: ${{ matrix.node-version }} == '20.x' + uses: actions/upload-pages-artifact@v3 + with: + path: "docs"