Fix build?
This commit is contained in:
		
							
								
								
									
										22
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -10,33 +10,21 @@ jobs: | |||||||
|     name: Build NPM Project |     name: Build NPM Project | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     container: |     container: | ||||||
|       image: node |       image: node:alpine | ||||||
|       volumes: |       volumes: | ||||||
|         - '/mnt/swarm/gitea/runner/cache:/cache' |         - '/mnt/swarm/gitea/runner/cache:/cache' | ||||||
|     steps: |     steps: | ||||||
|       -   name: Clone Repository |       -   name: Clone Repository | ||||||
|           uses: ztimson/actions/clone@develop |           uses: ztimson/actions/clone@develop | ||||||
|  |  | ||||||
|       -   name: Restore node_modules |       -   name: Install & Build Project | ||||||
|           uses: ztimson/actions/cache/restore@develop |           run: | | ||||||
|           with: |             npm run i | ||||||
|             key: node_modules |             npm run build | ||||||
|  |  | ||||||
|       -   name: Install Dependencies |  | ||||||
|           run: npm i |  | ||||||
|  |  | ||||||
|       -   name: Build Project |  | ||||||
|           run: npm run build |  | ||||||
|  |  | ||||||
|       -   name: Test |       -   name: Test | ||||||
|           run: npm run test:coverage |           run: npm run test:coverage | ||||||
|  |  | ||||||
|       -   name: Cache node_modules |  | ||||||
|           uses: ztimson/actions/cache@develop |  | ||||||
|           with: |  | ||||||
|             key: node_modules |  | ||||||
|             pattern: node_modules |  | ||||||
|  |  | ||||||
|       -   name: Upload to Registry |       -   name: Upload to Registry | ||||||
|           uses: ztimson/actions/npm/publish@develop |           uses: ztimson/actions/npm/publish@develop | ||||||
|  |  | ||||||
|   | |||||||
| @@ -20,10 +20,10 @@ | |||||||
| 		} | 		} | ||||||
| 	}, | 	}, | ||||||
| 	"scripts": { | 	"scripts": { | ||||||
| 		"build": "tsc && vite build", | 		"build": "npx tsc && npx vite build", | ||||||
| 		"test": "jest", | 		"test": "npx jest", | ||||||
| 		"test:coverage": "jest --coverage", | 		"test:coverage": "npx jest --coverage", | ||||||
| 		"watch": "vite build --watch" | 		"watch": "npx vite build --watch" | ||||||
| 	}, | 	}, | ||||||
| 	"devDependencies": { | 	"devDependencies": { | ||||||
| 		"@types/jest": "^29.5.12", | 		"@types/jest": "^29.5.12", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user