Skip to content

Commit

Permalink
build: add documentation build and upload steps for Node.js 20.x
Browse files Browse the repository at this point in the history
  • Loading branch information
bengeois committed Nov 1, 2024
1 parent cbf5565 commit 6a18f6f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 6a18f6f

Please sign in to comment.