1 parent d722405 commit c330d87Copy full SHA for c330d87
2 files changed
.github/workflows/ci.yml
@@ -0,0 +1,20 @@
1
+name: CI
2
+
3
+on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
8
9
+jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - uses: actions/setup-node@v4
15
+ with:
16
+ node-version: 22
17
+ cache: 'npm'
18
+ - run: npm ci
19
+ - run: npm test
20
+ - run: npm run build
.github/workflows/publish.yml
@@ -0,0 +1,21 @@
+name: Publish to npm
+ release:
+ types: [published]
+ build:
+ registry-url: https://registry.npmjs.org/
+ - run: npm publish
+ env:
21
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments