Fix build?
This commit is contained in:
parent
2934f86530
commit
535e579b43
22
.github/workflows/build.yaml
vendored
22
.github/workflows/build.yaml
vendored
@ -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
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user