Skip to content

Commit 0f2e184

Browse files
committed
fix: pin macOS CI to Node 20.9.0 for isolated-vm prebuilt binaries
isolated-vm@6.0.2 doesn't have prebuilt binaries for Node 20.19.6 on macOS ARM64. When it tries to compile from source, it fails with V8 API incompatibility errors (SourceLocation not found). Solution: Pin macOS runners to Node 20.9.0 which has prebuilt binaries. This ensures isolated-vm installs successfully and all security features work as designed. Fixes: #isolated-vm-compilation-failures
1 parent 5364bcf commit 0f2e184

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
node-version: 18.x
3131
- os: macos-latest
3232
node-version: 18.x
33+
include:
34+
# Pin macOS to Node 20.9.0 for isolated-vm prebuilt binary compatibility
35+
- os: macos-latest
36+
node-version: 20.9.0
37+
exact-version: true
3338

3439
steps:
3540
- name: Checkout code
@@ -126,7 +131,7 @@ jobs:
126131
- name: Setup Node.js
127132
uses: actions/setup-node@v4
128133
with:
129-
node-version: '20.x'
134+
node-version: '20.9.0'
130135
cache: 'npm'
131136

132137
- name: Install dependencies

0 commit comments

Comments
 (0)