Skip to content

Commit af5a1ef

Browse files
committed
CI: Pull Request Workflow
1 parent 98b4c6b commit af5a1ef

File tree

3 files changed

+770
-2
lines changed

3 files changed

+770
-2
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v4
17+
18+
- name: Use Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '22.x'
22+
cache: 'pnpm'
23+
cache-dependency-path: 'pnpm-lock.yaml'
24+
25+
- name: Install
26+
run: pnpm install --frozen-lockfile
27+
28+
- name: Lint
29+
run: pnpm run lint
30+
31+
- name: Build
32+
run: pnpm run build

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "@bitte-ai/react",
3-
"version": "0.6.6-popup-wallet.1",
3+
"version": "0.0.0",
44
"description": "React app tools for Bitte Wallet",
55
"scripts": {
66
"watch": "tsc && tsc --watch & jest --watch --coverage",
7-
"lint": "eslint . --fix --ext ts --ext tsx",
7+
"lint": "biome check",
8+
"fmt": "biome check --write",
89
"build": "tsup --config tsup.config.ts --external fsevents",
910
"prepare": "pnpm run build"
1011
},
@@ -32,6 +33,7 @@
3233
"@testing-library/user-event": "^14.6.1",
3334
"@types/react": "^19.1.12",
3435
"@types/react-dom": "^19.1.9",
36+
"biome": "^0.3.3",
3537
"rxjs": "^7.8.2",
3638
"tsup": "^8.5.0",
3739
"typescript": "^5.9.2"

0 commit comments

Comments
 (0)