fix: add turbo build in ci
Signed-off-by: Innei <i@innei.in>
This commit is contained in:
parent
6cb8fee9d4
commit
7b848cd08a
|
|
@ -106,7 +106,7 @@ jobs:
|
|||
|
||||
- name: Build
|
||||
if: matrix.os != 'macos-latest'
|
||||
run: pnpm build
|
||||
run: turbo run build
|
||||
env:
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
|
||||
|
|
@ -117,7 +117,7 @@ jobs:
|
|||
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||
KEYCHAIN_PATH: ${{ runner.temp }}/app-signing.keychain-db
|
||||
run: pnpm build:macos
|
||||
run: turbo run build:macos
|
||||
|
||||
- name: Upload file
|
||||
uses: actions/upload-artifact@v4
|
||||
|
|
|
|||
|
|
@ -35,8 +35,6 @@ jobs:
|
|||
run: pnpm install
|
||||
- name: Format, Lint and Typecheck
|
||||
run: |
|
||||
pnpm run format:check
|
||||
pnpm run typecheck
|
||||
pnpm run lint
|
||||
turbo run format:check typecheck lint
|
||||
- name: Run test
|
||||
run: pnpm test
|
||||
run: turbo run test
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
"scripts": {
|
||||
"build": "tsup",
|
||||
"test": "vitest",
|
||||
"typecheck": "tsup && tsc --noEmit"
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@egoist/tipc": "0.3.2",
|
||||
|
|
|
|||
16
turbo.json
16
turbo.json
|
|
@ -8,7 +8,21 @@
|
|||
"//#build:web": {
|
||||
"outputs": ["out/**"]
|
||||
},
|
||||
"typecheck": {},
|
||||
"//#build:macos": {
|
||||
"outputs": ["dist/**", "out/**"]
|
||||
},
|
||||
"//#format:check": {},
|
||||
"//#lint": {},
|
||||
"test": {},
|
||||
"@follow/electron-main#build": {
|
||||
"outputs": ["dist/**"]
|
||||
},
|
||||
"typecheck": {
|
||||
"dependsOn": ["@follow/electron-main#build"]
|
||||
},
|
||||
"@follow/server#build": {
|
||||
"outputs": ["dist/**"]
|
||||
},
|
||||
"dev": {
|
||||
"persistent": true,
|
||||
"cache": false
|
||||
|
|
|
|||
Loading…
Reference in New Issue