瀏覽代碼

Add github action to build on push

Thomas Dy 4 年之前
父節點
當前提交
3ab3330af2
共有 1 個文件被更改,包括 16 次插入0 次删除
  1. 16 0
      .github/workflows/build.yaml

+ 16 - 0
.github/workflows/build.yaml

@@ -0,0 +1,16 @@
+name: Build
+
+on: push
+
+jobs:
+  tsc:
+    name: Compile typescript
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: actions/checkout@v2
+      - uses: actions/setup-node@v2
+        with:
+          node-version: '14'
+      - run: npm install
+      - run: npm run build