From 23074a12760189392fe4d1be8ee8ffdf63fb18f5 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 31 Dec 2024 21:29:55 +0800 Subject: [PATCH] fix: node --- .github/workflows/reusable-build.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index c5e03b9fa6aa..059370a40d6d 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -375,10 +375,6 @@ jobs: echo "====================================" pnpm api-extractor:ci - - name: Documentation coverage check - if: ${{ inputs.target == 'x86_64-unknown-linux-gnu' && !inputs.skipable }} - run: pnpm doc-coverage - ### write the latest metric into branch gh-pages ### Note that, We can't merge this script, because this script only runs on main branch - name: Update main branch test compatibility metric @@ -393,6 +389,17 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} sha: ${{ github.sha }} + # The doc-coverage script requires Node 22 + - name: Switch to Node 22 + uses: actions/setup-node@v4 + with: + node-version: 22 + + - name: Documentation coverage check + if: ${{ inputs.target == 'x86_64-unknown-linux-gnu' && !inputs.skipable }} + + run: pnpm doc-coverage + bench: name: Bench needs: build