From 535e579b4347248e464170ed2405334203d7a0a0 Mon Sep 17 00:00:00 2001 From: ztimson Date: Fri, 19 Jul 2024 00:06:17 -0400 Subject: [PATCH] Fix build? --- .github/workflows/build.yaml | 22 +++++----------------- package.json | 8 ++++---- 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e8abaf0..267aa14 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -10,33 +10,21 @@ jobs: name: Build NPM Project runs-on: ubuntu-latest container: - image: node + image: node:alpine volumes: - '/mnt/swarm/gitea/runner/cache:/cache' steps: - name: Clone Repository uses: ztimson/actions/clone@develop - - name: Restore node_modules - uses: ztimson/actions/cache/restore@develop - with: - key: node_modules - - - name: Install Dependencies - run: npm i - - - name: Build Project - run: npm run build + - name: Install & Build Project + run: | + npm run i + npm run build - name: Test 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 uses: ztimson/actions/npm/publish@develop diff --git a/package.json b/package.json index ca27ea8..19819ce 100644 --- a/package.json +++ b/package.json @@ -20,10 +20,10 @@ } }, "scripts": { - "build": "tsc && vite build", - "test": "jest", - "test:coverage": "jest --coverage", - "watch": "vite build --watch" + "build": "npx tsc && npx vite build", + "test": "npx jest", + "test:coverage": "npx jest --coverage", + "watch": "npx vite build --watch" }, "devDependencies": { "@types/jest": "^29.5.12",