File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 4242 ${{ inputs.pre }}
4343 rustup target add ${{ inputs.target }}
4444
45- # corepack > 0.24.1 will use native fetch
46- # and native fetch not support HTTP_PROXY
47- # https://github.com/nodejs/undici/issues/1650
48- 45+ npm install -g [email protected] --force 46+ echo "Corepack version: $(corepack --version)"
4947 corepack enable
5048
5149 RUST_TARGET=${{ inputs.target }} pnpm build:binding:${{ inputs.profile }}
Original file line number Diff line number Diff line change 2828 if : ${{ inputs.node-version != '16' }}
2929 shell : bash
3030 run : |
31+ if [[ "${{runner.os}}" == "Windows" ]]; then
32+ # add the npm prefix to PATH to ensure the installed corepack work properly
33+ NPM_PREFIX=$(cygpath -u "$(npm config get prefix)")
34+ export PATH="$NPM_PREFIX:$PATH"
35+ fi
36+ npm install -g [email protected] --force 37+ echo "Corepack version: $(corepack --version)"
3138 corepack enable
3239
3340 # https://pnpm.io/continuous-integration#github-actions
You can’t perform that action at this time.
0 commit comments