ci: fix build desktop

This commit is contained in:
Alex Yang 2023-06-30 17:06:44 +08:00
parent ad218ec65d
commit 14f63e91a9
6 changed files with 21 additions and 8 deletions

View File

@ -374,8 +374,16 @@ jobs:
run: yarn nx test @affine/monorepo
env:
NATIVE_TEST: 'true'
- name: Build AFFiNE Desktop
- name: Build Infra
run: yarn run build:infra
- name: Build Plugins
run: yarn run build:plugins
- name: Build Desktop Layers
run: yarn nx build @affine/electron
- name: Download static resource artifact
uses: actions/download-artifact@v3
with:

View File

@ -124,9 +124,12 @@ jobs:
path: apps/electron/resources/web-static
- name: Build Infra
run: yarn nx run-many -t build -p plugin-infra infra
run: yarn run build:infra
- name: Build layers
- name: Build Plugins
run: yarn run build:plugins
- name: Build Desktop Layers
run: yarn nx build @affine/electron
- name: Signing By Apple Developer ID

View File

@ -124,9 +124,12 @@ jobs:
path: apps/electron/resources/web-static
- name: Build Infra
run: yarn nx run-many -t build -p plugin-infra infra
run: yarn run build:infra
- name: Build AFFiNE Desktop
- name: Build Plugins
run: yarn run build:plugins
- name: Build Desktop Layers
run: yarn nx build @affine/electron
- name: Signing By Apple Developer ID

View File

@ -24,7 +24,6 @@
"main": "./dist/main.js",
"devDependencies": {
"@affine-test/kit": "workspace:*",
"@affine/bookmark-block": "workspace:*",
"@affine/native": "workspace:*",
"@blocksuite/blocks": "0.0.0-20230630081054-55a25248-nightly",
"@blocksuite/editor": "0.0.0-20230630081054-55a25248-nightly",

View File

@ -20,6 +20,7 @@
"build": "yarn nx build @affine/web",
"build:electron": "yarn nx build @affine/electron",
"build:infra": "yarn nx run-many -t build -p plugin-infra infra",
"build:plugins": "yarn nx run-many -t build -p @affine/bookmark-block",
"build:storybook": "yarn nx build @affine/storybook",
"start:web": "yarn workspace @affine/web start",
"start:web-static": "yarn exec serve apps/web/out -l 8080",

View File

@ -50,7 +50,7 @@ __metadata:
languageName: unknown
linkType: soft
"@affine/bookmark-block@workspace:*, @affine/bookmark-block@workspace:plugins/bookmark-block":
"@affine/bookmark-block@workspace:plugins/bookmark-block":
version: 0.0.0-use.local
resolution: "@affine/bookmark-block@workspace:plugins/bookmark-block"
dependencies:
@ -207,7 +207,6 @@ __metadata:
resolution: "@affine/electron@workspace:apps/electron"
dependencies:
"@affine-test/kit": "workspace:*"
"@affine/bookmark-block": "workspace:*"
"@affine/native": "workspace:*"
"@blocksuite/blocks": 0.0.0-20230630081054-55a25248-nightly
"@blocksuite/editor": 0.0.0-20230630081054-55a25248-nightly