Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 4116218

Browse files
committed
chore: add GitHub Workflow
1 parent 663f9a7 commit 4116218

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/test-web.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test and Build Web
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: ['main']
7+
8+
jobs:
9+
test-and-build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
with:
19+
run_install: false
20+
21+
- name: Install Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
cache: 'pnpm'
26+
27+
- name: Install dependencies
28+
run: pnpm install --frozen-lockfile
29+
30+
- name: Build project
31+
run: pnpm build

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@
4444
"vite": "^5.4.1",
4545
"vite-plugin-node-polyfills": "^0.22.0",
4646
"vite-tsconfig-paths": "^5.0.1"
47-
}
47+
},
48+
"packageManager": "[email protected]+sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf"
4849
}

0 commit comments

Comments
 (0)