mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	[BUG] Include .vite subdir in PUI releases (#6973)
* use yarn to build * use different path annotation * fix path * include vite explicitly
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/workflows/qc_checks.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/qc_checks.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -531,11 +531,11 @@ jobs: | |||||||
|       - name: Install dependencies |       - name: Install dependencies | ||||||
|         run: cd src/frontend && yarn install |         run: cd src/frontend && yarn install | ||||||
|       - name: Build frontend |       - name: Build frontend | ||||||
|         run: cd src/frontend && npm run compile && npm run build |         run: cd src/frontend && yarn run compile && yarn run build | ||||||
|       - name: Zip frontend |       - name: Zip frontend | ||||||
|         run: | |         run: | | ||||||
|           cd src/backend/InvenTree/web/static |           cd src/backend/InvenTree/web/static | ||||||
|           zip -r frontend-build.zip web/ |           zip -r frontend-build.zip web/ web/.vite | ||||||
|       - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # pin@v4.3.1 |       - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # pin@v4.3.1 | ||||||
|         with: |         with: | ||||||
|           name: frontend-build |           name: frontend-build | ||||||
|   | |||||||
| @@ -26,7 +26,7 @@ export default defineConfig({ | |||||||
|         includePrivate: true, |         includePrivate: true, | ||||||
|         multipleVersions: true, |         multipleVersions: true, | ||||||
|         output: { |         output: { | ||||||
|           file: '../../InvenTree/web/static/web/.vite/dependencies.json', |           file: '../backend/InvenTree/web/static/web/.vite/dependencies.json', | ||||||
|           template(dependencies) { |           template(dependencies) { | ||||||
|             return JSON.stringify(dependencies); |             return JSON.stringify(dependencies); | ||||||
|           } |           } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user