Skip to content

Commit 2a1aa66

Browse files
committed
allow beta builds on versions of electron
1 parent b0ad855 commit 2a1aa66

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/prebuild.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ jobs:
152152
strategy:
153153
matrix:
154154
os: [ubuntu-22.04, windows-2022, macos-latest]
155-
electron: [30, 31, 32, 33, 34, 35, 36, 37, 38, 39]
155+
electron: [30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40.0.0-beta.4]
156156
runs-on: ${{ matrix.os }}
157157

158158
steps:
@@ -223,7 +223,13 @@ jobs:
223223
npm ls node-abi node-gyp
224224
225225
- name: Prebuild Electron binaries
226-
run: npx prebuild -r electron -t ${{ matrix.electron }}.0.0 --strip
226+
run: |
227+
VERSION="${{ matrix.electron }}"
228+
# Only append .0.0 if version doesn't already contain a dot (i.e., is just a number like 30, 31)
229+
if [[ ! "$VERSION" =~ \. ]]; then
230+
VERSION="${VERSION}.0.0"
231+
fi
232+
npx prebuild -r electron -t "$VERSION" --strip
227233
228234
- name: List generated Electron prebuilds (Unix)
229235
if: runner.os != 'Windows'

0 commit comments

Comments
 (0)