CI: Add --no-optional flag to prod flavor
				
					
				
			This ensures that the packages build successfully even when optional deps are unavailable. `--no-optional` currently has no effect on the backend, because it has no optional packages.
This commit is contained in:
		
							parent
							
								
									3bc64e9551
								
							
						
					
					
						commit
						0c52174a40
					
				
							
								
								
									
										4
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							@ -32,7 +32,7 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      - name: Install (Prod dependencies only)
 | 
					      - name: Install (Prod dependencies only)
 | 
				
			||||||
        if: ${{ matrix.flavor == 'prod'}}
 | 
					        if: ${{ matrix.flavor == 'prod'}}
 | 
				
			||||||
        run: npm ci --prod
 | 
					        run: npm ci --prod --no-optional
 | 
				
			||||||
        working-directory: ${{ matrix.flavor }}/backend
 | 
					        working-directory: ${{ matrix.flavor }}/backend
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Lint 
 | 
					      - name: Lint 
 | 
				
			||||||
@ -67,7 +67,7 @@ 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 ci --prod
 | 
					        run: npm ci --prod --no-optional
 | 
				
			||||||
        if: ${{ matrix.flavor == 'prod'}}
 | 
					        if: ${{ matrix.flavor == 'prod'}}
 | 
				
			||||||
        working-directory: ${{ matrix.flavor }}/frontend
 | 
					        working-directory: ${{ matrix.flavor }}/frontend
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user