forked from MapComplete/MapComplete
		
	Chore(runner): split build step into multiple steps
This commit is contained in:
		
							parent
							
								
									057a32aedd
								
							
						
					
					
						commit
						cfccec2a88
					
				
					 1 changed files with 10 additions and 3 deletions
				
			
		
							
								
								
									
										13
									
								
								.github/workflows/deploy_hosted.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								.github/workflows/deploy_hosted.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -37,10 +37,13 @@ jobs:
 | 
			
		|||
        run: npm run prepare-deploy
 | 
			
		||||
        shell: bash
 | 
			
		||||
 | 
			
		||||
      - name: run tests
 | 
			
		||||
 | 
			
		||||
      - name: Prepare build
 | 
			
		||||
        run: npm run generate:service-worker && ./scripts/prepare-build.sh
 | 
			
		||||
        shell: bash
 | 
			
		||||
 | 
			
		||||
      - name: Run tests
 | 
			
		||||
        run: |
 | 
			
		||||
          pwd
 | 
			
		||||
          ls
 | 
			
		||||
          # This is the same as `npm run test`, but `vitest` doesn't want to run within npm :shrug:
 | 
			
		||||
          export NODE_OPTIONS="--max-old-space-size=8192"
 | 
			
		||||
          npm run clean:tests
 | 
			
		||||
| 
						 | 
				
			
			@ -55,6 +58,10 @@ jobs:
 | 
			
		|||
          npm run clean:tests
 | 
			
		||||
        shell: bash
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
      - name: Build files
 | 
			
		||||
        run: npm run build
 | 
			
		||||
 | 
			
		||||
      - name: Zipping dist file
 | 
			
		||||
        run: |
 | 
			
		||||
          mv dist ${{ github.ref_name }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue