Skip to content

Commit 4c2824b

Browse files
committed
refactor(ci): deduplicate installing dependencies & updating build
1 parent b6ccc06 commit 4c2824b

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

.github/workflows/main.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ jobs:
4040
- name: Run the build
4141
uses: ./.github/actions/build
4242
with:
43-
os: ${{ matrix.os.name }}
44-
- name: Install dependencies
45-
run: npm ci
46-
- name: Update build info
47-
run: npm run update-build-info
43+
os: ${{ matrix.os.name }}
4844
- name: Run electron-forge
4945
run: npm run make-electron -- --arch=${{ matrix.arch }}
5046
- name: Prepare artifacts (Unix)

.github/workflows/nightly.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ jobs:
3737
- name: Run the build
3838
uses: ./.github/actions/build
3939
with:
40-
os: ${{ matrix.os.name }}
41-
- name: Install dependencies
42-
run: npm ci
43-
- name: Update build info
44-
run: npm run update-build-info
40+
os: ${{ matrix.os.name }}
4541
- name: Update nightly version
4642
run: npm run ci-update-nightly-version
4743
- name: Run electron-forge

.github/workflows/release.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ jobs:
3737
- name: Run the build
3838
uses: ./.github/actions/build
3939
with:
40-
os: ${{ matrix.os.name }}
41-
- name: Install dependencies
42-
run: npm ci
43-
- name: Update build info
44-
run: npm run update-build-info
40+
os: ${{ matrix.os.name }}
4541
- name: Run electron-forge
4642
run: npm run make-electron -- --arch=${{ matrix.arch }}
4743
- name: Prepare artifacts (Unix)

0 commit comments

Comments
 (0)