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
|
- name: Build Go app
|
||||||
run: |
|
run: |
|
||||||
cd modules/backend
|
cd modules/backend
|
||||||
|
go mod tidy
|
||||||
go build -o nyanimedb .
|
go build -o nyanimedb .
|
||||||
tar -czvf nyanimedb-backend.tar.gz nyanimedb templates/
|
tar -czvf nyanimedb-backend.tar.gz nyanimedb templates/
|
||||||
|
|
||||||
|
|
@ -38,13 +39,14 @@ jobs:
|
||||||
# Build frontend
|
# Build frontend
|
||||||
- uses: actions/setup-node@v5
|
- uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version-file: 'modules/frontend/package.json'
|
node-version-file: modules/frontend/package.json
|
||||||
cache: 'npm'
|
cache: npm
|
||||||
cache-dependency-path: modules/frontend/package-lock.json
|
cache-dependency-path: modules/frontend/package-lock.json
|
||||||
|
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
run: |
|
run: |
|
||||||
cd modules/frontend
|
cd modules/frontend
|
||||||
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
tar -czvf nyanimedb-frontend.tar.gz dist/
|
tar -czvf nyanimedb-frontend.tar.gz dist/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue