1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2024-12-27 01:05:21 +01:00

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

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ node_modules
.next .next
app 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": { "scripts": {
"dev": "nextron", "dev": "nextron",
"build": "nextron build", "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": { "dependencies": {
"dayjs": "^1.11.10", "dayjs": "^1.11.10",