summary refs log tree commit diff homepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.github/workflows/build.yml18
-rw-r--r--package.json2
2 files changed, 19 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..10e715b
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,18 @@
+name: Build
+on: [push]
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v2
+    - uses: actions/setup-node@v2
+      with:
+        node-version: '16.x'
+    - name: Install packages
+      run: yarn install
+    - name: Type check
+      run: yarn type-check
+    - name: Build
+      run: yarn build
diff --git a/package.json b/package.json
index 6b42050..c70b838 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,7 @@
   "scripts": {
     "start": "node build/index.js",
     "build": "tsc",
-    "test": "standard"
+    "type-check": "tsc --noEmit"
   },
   "repository": {
     "type": "git",