Skip to content

Commit 1c4982f

Browse files
Add CI workflow
1 parent 72391ae commit 1c4982f

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
tags: ["v*"]
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
check:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 22
22+
cache: npm
23+
24+
- name: Install
25+
run: npm ci
26+
27+
- name: Typecheck and test
28+
run: npm run check
29+
30+
- name: Validate package contents
31+
run: npm pack --dry-run

0 commit comments

Comments
 (0)