diff --git a/.github/workflows/build_reusable.yml b/.github/workflows/build_reusable.yml index b1da807639da4..00ab4078627cb 100644 --- a/.github/workflows/build_reusable.yml +++ b/.github/workflows/build_reusable.yml @@ -112,12 +112,8 @@ jobs: script: | core.setOutput('input_step_key', '${{ inputs.stepName }}'.toLowerCase().replaceAll(/[/.]/g, '-').trim('-')); - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: ${{ inputs.nodeVersion || env.NODE_LTS_VERSION }} - check-latest: true - + - run: fnm use --install-if-missing ${{ inputs.nodeVersion || env.NODE_LTS_VERSION }} + - run: fnm default ${{ inputs.nodeVersion || env.NODE_LTS_VERSION }} - run: node -v - run: corepack enable - run: pwd