Skip to content

Commit 17b4f67

Browse files
author
Damian Stasik
authored
ci: Skip unnecessary builds (#2389)
1 parent d8468ae commit 17b4f67

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
restore-keys: |
2727
${{ runner.os }}-node-${{ env.NODE_VERSION }}-
2828
- name: Install dependencies
29-
run: npm ci
29+
run: npm ci --ignore-scripts
3030
- name: CI Node Engine Check
3131
run: npm run ci:checkNodeEngine
3232
check-lint:
@@ -47,7 +47,7 @@ jobs:
4747
restore-keys: |
4848
${{ runner.os }}-node-${{ env.NODE_VERSION }}-
4949
- name: Install dependencies
50-
run: npm ci
50+
run: npm ci --ignore-scripts
5151
- run: npm run lint
5252
check-circular:
5353
name: Circular Dependencies
@@ -67,7 +67,7 @@ jobs:
6767
restore-keys: |
6868
${{ runner.os }}-node-${{ env.NODE_VERSION }}-
6969
- name: Install dependencies
70-
run: npm ci
70+
run: npm ci --ignore-scripts
7171
- name: Scan for circular dependencies
7272
run: npm run madge:circular
7373
check-docker:
@@ -143,12 +143,8 @@ jobs:
143143
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
144144
restore-keys: |
145145
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
146-
- name: Install dependencies (Node < 10)
147-
run: npm install
148-
if: ${{ steps.node.outputs.node_major < 10 }}
149-
- name: Install dependencies (Node >= 10)
146+
- name: Install dependencies
150147
run: npm ci
151-
if: ${{ steps.node.outputs.node_major >= 10 }}
152148
- name: Tests
153149
run: npm test
154150
- name: Test bundles

0 commit comments

Comments
 (0)