Skip to content

Commit 7c1ba75

Browse files
authored
npm ci is preferred over npm install for CI workflows (#1386)
1 parent 08bee48 commit 7c1ba75

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/CI.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
node-version: 20
2020
cache: 'npm'
2121
- name: Install
22-
run: npm install
22+
run: npm ci
2323
- name: lint
2424
run: npm run lint
2525

@@ -33,7 +33,7 @@ jobs:
3333
node-version: 20
3434
cache: 'npm'
3535
- name: Install
36-
run: npm install
36+
run: npm ci
3737
- name: Build
3838
run: npm run build
3939
- name: Build test app
@@ -54,7 +54,7 @@ jobs:
5454
node-version: ${{ matrix.node }}
5555
cache: 'npm'
5656
- name: Install
57-
run: npm install
57+
run: npm ci
5858
- name: Run tests
5959
run: npm run test:all -- --runInBand
6060

@@ -68,7 +68,7 @@ jobs:
6868
node-version: 20
6969
cache: 'npm'
7070
- name: Install
71-
run: npm install
71+
run: npm ci
7272
- name: Run tests
7373
run: npm run test:all -- --runInBand
7474

@@ -82,6 +82,6 @@ jobs:
8282
node-version: 20
8383
cache: 'npm'
8484
- name: Install
85-
run: npm install
85+
run: npm ci
8686
- name: Run tests
8787
run: npm run test:all -- --runInBand

0 commit comments

Comments
 (0)