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

View File

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