Setup build CI

This commit is contained in:
AkiraFukushima 2023-11-07 00:57:47 +09:00
parent 03f5da5086
commit 68378332aa
No known key found for this signature in database
GPG Key ID: B6E51BAC4DE1A957
4 changed files with 31 additions and 2 deletions

24
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Build
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install
run: |
yarn install
- name: typecheck
run: |
yarn run typecheck

3
.gitignore vendored
View File

@ -2,4 +2,5 @@ node_modules
*.log
.next
app
dist
dist
tsconfig.tsbuildinfo

3
main/tsconfig.json Normal file
View File

@ -0,0 +1,3 @@
{
"extends": "../tsconfig.json"
}

View File

@ -8,7 +8,8 @@
"scripts": {
"dev": "nextron",
"build": "nextron build",
"postinstall": "electron-builder install-app-deps"
"postinstall": "electron-builder install-app-deps",
"typecheck": "tsc -p renderer --noEmit && tsc -p main --noEmit"
},
"dependencies": {
"dayjs": "^1.11.10",