We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8efacea commit bd0cb92Copy full SHA for bd0cb92
.github/workflows/ci.yml
@@ -0,0 +1,26 @@
1
+name: CI
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - "main"
7
+ pull_request: {}
8
9
+jobs:
10
+ checks:
11
+ name: Pre-merge Checks
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: actions/setup-node@v4
16
+ with:
17
+ node-version: 20
18
19
+ - name: Setup
20
+ run: npm ci
21
22
+ - name: Check formatting
23
+ run: npm run format:check
24
25
+ - name: Test build
26
+ run: npm run build
package.json
@@ -13,6 +13,8 @@
],
"scripts": {
"build": "tsup",
+ "format": "prettier --write .",
+ "format:check": "prettier --check .",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
0 commit comments