CI: Use npm ci instead of npm install
				
					
				
			`npm ci` is recommended instead of `npm install` for automated builds. Its main advantage is the `package-lock.json` consistency check: The command fails if the lock file doesn't match `package.json`.
This commit is contained in:
		
							parent
							
								
									78ee671051
								
							
						
					
					
						commit
						80476a2b61
					
				
							
								
								
									
										8
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @ -27,12 +27,12 @@ jobs: | |||||||
| 
 | 
 | ||||||
|       - name: Install |       - name: Install | ||||||
|         if: ${{ matrix.flavor == 'dev'}} |         if: ${{ matrix.flavor == 'dev'}} | ||||||
|         run: npm install |         run: npm ci | ||||||
|         working-directory: ${{ matrix.flavor }}/backend |         working-directory: ${{ matrix.flavor }}/backend | ||||||
| 
 | 
 | ||||||
|       - name: Install (Prod dependencies only) |       - name: Install (Prod dependencies only) | ||||||
|         if: ${{ matrix.flavor == 'prod'}} |         if: ${{ matrix.flavor == 'prod'}} | ||||||
|         run: npm install --prod |         run: npm ci --prod | ||||||
|         working-directory: ${{ matrix.flavor }}/backend |         working-directory: ${{ matrix.flavor }}/backend | ||||||
| 
 | 
 | ||||||
|       - name: Lint  |       - name: Lint  | ||||||
| @ -67,13 +67,13 @@ jobs: | |||||||
|           registry-url: 'https://registry.npmjs.org' |           registry-url: 'https://registry.npmjs.org' | ||||||
| 
 | 
 | ||||||
|       - name: Install (Prod dependencies only) |       - name: Install (Prod dependencies only) | ||||||
|         run: npm install --prod |         run: npm ci --prod | ||||||
|         if: ${{ matrix.flavor == 'prod'}} |         if: ${{ matrix.flavor == 'prod'}} | ||||||
|         working-directory: ${{ matrix.flavor }}/frontend |         working-directory: ${{ matrix.flavor }}/frontend | ||||||
| 
 | 
 | ||||||
|       - name: Install |       - name: Install | ||||||
|         if: ${{ matrix.flavor == 'dev'}} |         if: ${{ matrix.flavor == 'dev'}} | ||||||
|         run: npm install |         run: npm ci | ||||||
|         working-directory: ${{ matrix.flavor }}/frontend |         working-directory: ${{ matrix.flavor }}/frontend | ||||||
| 
 | 
 | ||||||
|       - name: Lint |       - name: Lint | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user