Skip to content

Commit d211801

Browse files
committed
Add CI workflow and remove broken prepare script
1 parent a07fa9a commit d211801

2 files changed

Lines changed: 42 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node: [20, 22]
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Setup pnpm
22+
uses: pnpm/action-setup@v4
23+
with:
24+
version: 9
25+
26+
- name: Setup Node.js ${{ matrix.node }}
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{ matrix.node }}
30+
cache: pnpm
31+
32+
- name: Install dependencies
33+
run: pnpm install --frozen-lockfile
34+
35+
- name: Type check
36+
run: pnpm typecheck
37+
38+
- name: Build
39+
run: pnpm build
40+
41+
- name: Run tests
42+
run: pnpm test

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"url": "https://github.com/unlayer/cli/issues"
2525
},
2626
"scripts": {
27-
"prepare": "npx tsup",
2827
"build": "tsup",
2928
"dev": "tsup --watch",
3029
"start": "node dist/index.js",

0 commit comments

Comments
 (0)