build(ci): add caching for frontend dependencies and dist
This commit is contained in:
		
					parent
					
						
							
								ef8111cc7e
							
						
					
				
			
			
				commit
				
					
						0590a2f9ee
					
				
			
		
					 1 changed files with 24 additions and 0 deletions
				
			
		|  | @ -47,6 +47,14 @@ jobs: | |||
|         uses: actions/checkout@v4 | ||||
|       - name: Install bun | ||||
|         uses: oven-sh/setup-bun@v2 | ||||
|       - uses: actions/cache@v3 | ||||
|         working-directory: ./frontend | ||||
|         with: | ||||
|           path: | | ||||
|             frontend/node_modules/ | ||||
|           key: ${{ runner.os }}-bun- | ||||
|           restore-keys: | | ||||
|             ${{ runner.os }}-bun- | ||||
|       - name: Install dependencies | ||||
|         run: | | ||||
|           cd frontend | ||||
|  | @ -66,6 +74,14 @@ jobs: | |||
|         uses: actions/checkout@v4 | ||||
|       - name: Install bun | ||||
|         uses: oven-sh/setup-bun@v2 | ||||
|       - uses: actions/cache@v3 | ||||
|         working-directory: ./frontend | ||||
|         with: | ||||
|           path: | | ||||
|             frontend/node_modules/ | ||||
|           key: ${{ runner.os }}-bun- | ||||
|           restore-keys: | | ||||
|             ${{ runner.os }}-bun- | ||||
|       - name: Install dependencies | ||||
|         run: | | ||||
|           cd frontend | ||||
|  | @ -93,6 +109,14 @@ jobs: | |||
|           key: ${{ runner.os }}-bun- | ||||
|           restore-keys: | | ||||
|             ${{ runner.os }}-bun- | ||||
|       - uses: actions/cache@v3 | ||||
|         working-directory: ./frontend | ||||
|         with: | ||||
|           path: | | ||||
|             frontend/dist/ | ||||
|           key: ${{ runner.os }}-dist- | ||||
|           restore-keys: | | ||||
|             ${{ runner.os }}-dist- | ||||
|       - name: Install dependencies | ||||
|         run: | | ||||
|           cd frontend | ||||
|  |  | |||
		Reference in a new issue