fix: frontend build
This commit is contained in:
parent
951db38e4c
commit
cfc753bf84
1 changed files with 4 additions and 2 deletions
|
|
@ -26,6 +26,7 @@ jobs:
|
|||
- name: Build Go app
|
||||
run: |
|
||||
cd modules/backend
|
||||
go mod tidy
|
||||
go build -o nyanimedb .
|
||||
tar -czvf nyanimedb-backend.tar.gz nyanimedb templates/
|
||||
|
||||
|
|
@ -38,13 +39,14 @@ jobs:
|
|||
# Build frontend
|
||||
- uses: actions/setup-node@v5
|
||||
with:
|
||||
node-version-file: 'modules/frontend/package.json'
|
||||
cache: 'npm'
|
||||
node-version-file: modules/frontend/package.json
|
||||
cache: npm
|
||||
cache-dependency-path: modules/frontend/package-lock.json
|
||||
|
||||
- name: Build frontend
|
||||
run: |
|
||||
cd modules/frontend
|
||||
npm install
|
||||
npm run build
|
||||
tar -czvf nyanimedb-frontend.tar.gz dist/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue