Skip to content

Commit b8f165c

Browse files
许君山许君山
authored andcommitted
ci: replace Deno workflow with Node.js CI (install + build)
1 parent bc7dab5 commit b8f165c

2 files changed

Lines changed: 39 additions & 42 deletions

File tree

.github/workflows/deno.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/nodejs.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: "20"
24+
cache: "npm"
25+
cache-dependency-path: |
26+
backend/package-lock.json
27+
frontend/package-lock.json
28+
29+
- name: Install backend deps
30+
working-directory: backend
31+
run: npm ci
32+
33+
- name: Install frontend deps
34+
working-directory: frontend
35+
run: npm ci
36+
37+
- name: Build frontend
38+
working-directory: frontend
39+
run: npm run build

0 commit comments

Comments
 (0)