test ci
Some checks failed
/ build (push) Failing after 6s

This commit is contained in:
fred 2025-10-30 14:22:17 -07:00
parent bc926b9bba
commit fe12ced963
4 changed files with 29 additions and 2 deletions

26
.forgejo/workflows/ci.yml Normal file
View file

@ -0,0 +1,26 @@
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
NODE_ENV: production
container:
image: node:22-bullseye
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build Frontend
working-directory: frontend
run: |
npm install
npm run production
- name: Build Backend
working-directory: backend
run: |
npm install
npm run production

1
.gitignore vendored
View file

@ -2,6 +2,7 @@ db/
*/.env
.env*
todo
.forgejo/workflows/env
sqldumps/
logs/
dist/

View file

@ -4,7 +4,7 @@
"main": "index.js",
"scripts": {
"dev": "nodemon ./src/index.ts",
"production": "tsc && node ./dist/index.js",
"production": "npx tsc && node ./dist/index.js",
"demo": "tsc && node ./dist/index.js"
},
"keywords": [],

View file

@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite --host 0.0.0.0 --port 80",
"production": "tsc -b && vite build",
"production": "npx tsc -b && vite build",
"demo": "tsc -b && vite build",
"build": "tsc -b && vite build",
"lint": "eslint .",