Skip to content

Commit 22d0e27

Browse files
committed
Update actions for newer macOS runners.
1 parent d1a813b commit 22d0e27

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

.github/workflows/build.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,14 @@ jobs:
8686
node-version: latest
8787
cache: npm
8888

89-
- name: Install dependencies (NPM${{ matrix.name == 'macOS' && '+PIP' || '' }})
90-
run: ${{ matrix.runner == 'macos-latest' && 'python -m pip install setuptools &&' || '' }} npm ci
89+
- name: Lock Python version (macOS only)
90+
if: ${{ matrix.runner == 'macos-latest' || matrix.runner == 'macos-14' }}
91+
uses: actions/setup-python@v5
92+
with:
93+
python-version: '3.11'
94+
95+
- name: Install dependencies (NPM)
96+
run: npm ci
9197

9298
- name: Update dependencies
9399
if: ${{ matrix.build == 'latest' }}

.github/workflows/prerelease.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,14 @@ jobs:
3636
node-version: latest
3737
cache: npm
3838

39-
- name: Install dependencies (NPM${{ matrix.name == 'macOS' && '+PIP' || '' }})
40-
run: ${{ matrix.runner == 'macos-latest' && 'python -m pip install setuptools &&' || '' }} npm ci
39+
- name: Lock Python version (macOS only)
40+
if: ${{ matrix.runner == 'macos-latest' || matrix.runner == 'macos-14' }}
41+
uses: actions/setup-python@v5
42+
with:
43+
python-version: '3.11'
44+
45+
- name: Install dependencies (NPM)
46+
run: npm ci
4147

4248
- name: TSC cache
4349
uses: actions/cache@v3

.github/workflows/release.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,14 @@ jobs:
3636
node-version: latest
3737
cache: npm
3838

39-
- name: Install dependencies (NPM${{ matrix.name == 'macOS' && '+PIP' || '' }})
40-
run: ${{ matrix.runner == 'macos-latest' && 'python -m pip install setuptools &&' || '' }} npm ci
39+
- name: Lock Python version (macOS only)
40+
if: ${{ matrix.runner == 'macos-latest' || matrix.runner == 'macos-14' }}
41+
uses: actions/setup-python@v5
42+
with:
43+
python-version: '3.11'
44+
45+
- name: Install dependencies (NPM)
46+
run: npm ci
4147

4248
- name: TSC cache
4349
uses: actions/cache@v3

0 commit comments

Comments
 (0)