Fix build?
Some checks failed
Build / Build NPM Project (push) Failing after 7s
Build / Tag Version (push) Has been skipped

This commit is contained in:
Zakary Timson 2024-07-19 00:06:17 -04:00
parent 2934f86530
commit 535e579b43
2 changed files with 9 additions and 21 deletions

View File

@ -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

View File

@ -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",