Skip to content

Commit fb762af

Browse files
committed
refactor(ci): deduplicate electron-forge
1 parent 4c2824b commit fb762af

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

.github/workflows/main.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,12 @@ jobs:
3636
- name: Set up node & dependencies
3737
uses: actions/setup-node@v4
3838
with:
39-
node-version: 20
39+
node-version: 20
4040
- name: Run the build
4141
uses: ./.github/actions/build
4242
with:
4343
os: ${{ matrix.os.name }}
44-
- name: Run electron-forge
45-
run: npm run make-electron -- --arch=${{ matrix.arch }}
44+
arch: ${{ matrix.arch }}
4645
- name: Prepare artifacts (Unix)
4746
if: runner.os != 'windows'
4847
run: |

.github/workflows/nightly.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,13 @@ jobs:
3434
uses: actions/setup-node@v4
3535
with:
3636
node-version: 20
37+
- name: Update nightly version
38+
run: npm run ci-update-nightly-version
3739
- name: Run the build
3840
uses: ./.github/actions/build
3941
with:
4042
os: ${{ matrix.os.name }}
41-
- name: Update nightly version
42-
run: npm run ci-update-nightly-version
43-
- name: Run electron-forge
44-
run: npm run make-electron -- --arch=${{ matrix.arch }}
43+
arch: ${{ matrix.arch }}
4544
- name: Prepare artifacts (Unix)
4645
if: runner.os != 'windows'
4746
run: |

.github/workflows/release.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ jobs:
3737
- name: Run the build
3838
uses: ./.github/actions/build
3939
with:
40-
os: ${{ matrix.os.name }}
41-
- name: Run electron-forge
42-
run: npm run make-electron -- --arch=${{ matrix.arch }}
40+
os: ${{ matrix.os.name }}
41+
arch: ${{ matrix.arch }}
4342
- name: Prepare artifacts (Unix)
4443
if: runner.os != 'windows'
4544
run: |

0 commit comments

Comments
 (0)