We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e56bc3 commit 395d2bcCopy full SHA for 395d2bc
1 file changed
.github/workflows/pull-request-review.yml
@@ -24,10 +24,22 @@ jobs:
24
with:
25
node-version: ${{ matrix.node }}
26
27
- # - name: Set up Python
28
- # uses: actions/setup-python@v5
29
- # with:
30
- # python-version: '3.10'
+ - name: Set up Python
+ if: startsWith(matrix.os, 'windows')
+ id: py
+ uses: actions/setup-python@v5
31
+ with:
32
+ python-version: '3.10'
33
+
34
+ - name: Force npm to use this Python
35
36
+ shell: pwsh
37
+ run: |
38
+ # setup-python exposes $env:PythonLocation
39
+ echo "npm_config_python=$env:PythonLocation\python.exe" | Out-File -FilePath $env:GITHUB_ENV -Append
40
+ npm config set python "$env:PythonLocation\python.exe"
41
+ python --version
42
+ npm config get python
43
44
# - name: Pin node-gyp 10 on Windows
45
# if: startsWith(matrix.os, 'windows')
0 commit comments