Skip to content

Commit ffd61f4

Browse files
Chetan11-devclaude
andcommitted
Fix CI install: Node 24, macos-15, allow dependency install scripts
Electron's installer silently fails on Node 26, so pin CI to Node 24. Newer npm blocks dependency install scripts unless listed in allowScripts, so approve the ones the build needs (electron, etc). Pin the mac runner to macos-15. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 26c5821 commit ffd61f4

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

‎.github/workflows/package.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ jobs:
88
timeout-minutes: 30
99
# Code signing on macOS 15+ runners needs electron-builder >= 26.17.0
1010
# (fixes the keychain password passed to `security set-key-partition-list`).
11-
runs-on: macos-latest
11+
runs-on: macos-15
1212
steps:
1313
- name: Check out Git repository
1414
uses: actions/checkout@v3
1515

1616
- name: Install Node.js and NPM
1717
uses: actions/setup-node@v3
1818
with:
19-
node-version: latest
19+
node-version: 24
2020
cache: npm
2121

2222
- name: npm install
@@ -50,7 +50,7 @@ jobs:
5050
- name: Install Node.js and NPM
5151
uses: actions/setup-node@v3
5252
with:
53-
node-version: latest
53+
node-version: 24
5454
cache: npm
5555

5656
- name: npm install
@@ -74,7 +74,7 @@ jobs:
7474
- name: Install Node.js and NPM
7575
uses: actions/setup-node@v3
7676
with:
77-
node-version: latest
77+
node-version: 24
7878
cache: npm
7979

8080
- name: npm install

‎package.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,5 +278,12 @@
278278
".erb/dll/**"
279279
],
280280
"logLevel": "quiet"
281+
},
282+
"allowScripts": {
283+
"core-js": true,
284+
"core-js-pure": true,
285+
"electron": true,
286+
"electron-winstaller": true,
287+
"fsevents": true
281288
}
282289
}

0 commit comments

Comments
 (0)