Skip to content

Commit 845ae1f

Browse files
authored
Add GitHub Actions workflows for CI and npm publishing (#5)
* Add GitHub Actions workflows for CI and npm publishing - Add CI workflow that runs tests, type checking, and builds on push/PR - Add publishing workflow that publishes to npm on release creation - CI workflow tests against Node.js 18.x, 20.x, and 22.x * ➖ remove vite Signed-off-by: w01fgang <sumin@unix-center.ru> --------- Signed-off-by: w01fgang <sumin@unix-center.ru>
1 parent 622edb9 commit 845ae1f

3 files changed

Lines changed: 488 additions & 900 deletions

File tree

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [18.x, 20.x, 22.x]
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: 'npm'
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Type check
30+
run: npx tsc --noEmit
31+
32+
- name: Run tests
33+
run: npm run test:run
34+
35+
- name: Build
36+
run: npm run build

0 commit comments

Comments
 (0)