Skip to content
Merged
6 changes: 2 additions & 4 deletions .github/actions/docker-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ runs:
${{ inputs.pre }}
rustup target add ${{ inputs.target }}

# corepack > 0.24.1 will use native fetch
# and native fetch not support HTTP_PROXY
# https://github.com/nodejs/undici/issues/1650
npm install -g [email protected]
npm install -g [email protected] --force
echo "Corepack version: $(corepack --version)"
corepack enable

RUST_TARGET=${{ inputs.target }} pnpm build:binding:${{ inputs.profile }}
Expand Down
7 changes: 7 additions & 0 deletions .github/actions/pnpm-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ runs:
if: ${{ inputs.node-version != '16' }}
shell: bash
run: |
if [[ "${{runner.os}}" == "Windows" ]]; then
# add the npm prefix to PATH to ensure the installed corepack work properly
NPM_PREFIX=$(cygpath -u "$(npm config get prefix)")
export PATH="$NPM_PREFIX:$PATH"
fi
npm install -g [email protected] --force
echo "Corepack version: $(corepack --version)"
corepack enable

# https://pnpm.io/continuous-integration#github-actions
Expand Down
Loading