There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
build: fix nx config (#2824)
Alex Yang775d6212d3af
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 8d665c8d3a..e2e7a5a16a 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -29,6 +29,7 @@ env:APP_NAME: affineCOVERAGE: trueMACOSX_DEPLOYMENT_TARGET: '10.13'+ NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}jobs:lint:@@ -70,29 +71,20 @@ jobs:name: Build @affine/webruns-on: ubuntu-latestenvironment: development+ env:+ API_SERVER_PROFILE: local+ ENABLE_DEBUG_PAGE: 1+ ENABLE_PLUGIN: true+ ENABLE_ALL_PAGE_FILTER: true+ ENABLE_LEGACY_PROVIDER: true+ ENABLE_PRELOADING: falsesteps:- uses: actions/checkout@v3- name: Setup Node.jsuses: ./.github/actions/setup-node- - name: Cache Next.js- uses: actions/cache@v3- with:- path: |- ${{ github.workspace }}/apps/web/.next/cache- key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}- restore-keys: |- ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-- name: Build Webrun: yarn nx build @affine/web- env:- API_SERVER_PROFILE: local- ENABLE_DEBUG_PAGE: 1- ENABLE_PLUGIN: true- ENABLE_ALL_PAGE_FILTER: true- ENABLE_LEGACY_PROVIDER: true- ENABLE_PRELOADING: false-- name: Upload artifactuses: actions/upload-artifact@v3with:@@ -100,19 +92,25 @@ jobs:path: ./apps/web/.nextif-no-files-found: error- - name: Build Web (Desktop)- run: yarn nx build @affine/web- env:- API_SERVER_PROFILE: affine- ENABLE_DEBUG_PAGE: 1- ENABLE_PLUGIN: true- ENABLE_ALL_PAGE_FILTER: true- ENABLE_LEGACY_PROVIDER: false- ENABLE_PRELOADING: false- NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}+ build-web-desktop:+ name: Build @affine/web (Desktop)+ runs-on: ubuntu-latest+ environment: development+ env:+ API_SERVER_PROFILE: affine+ ENABLE_DEBUG_PAGE: 1+ ENABLE_PLUGIN: true+ ENABLE_ALL_PAGE_FILTER: true+ ENABLE_LEGACY_PROVIDER: false+ ENABLE_PRELOADING: false++ steps:+ - uses: actions/checkout@v3+ - name: Setup Node.js+ uses: ./.github/actions/setup-node- name: Export static resources- run: yarn workspace @affine/web export+ run: yarn nx export @affine/web- name: Upload static resources artifactuses: actions/upload-artifact@v3@@ -297,7 +295,7 @@ jobs:target: x86_64-pc-windows-msvc,test: true,}- needs: [build-web]+ needs: [build-web-desktop]steps:- uses: actions/checkout@v3- name: Setup Node.jsdiff --git a/nx.json b/nx.jsonindex f97dbdee8b..f44bae11ec 100644--- a/nx.json+++ b/nx.json@@ -29,7 +29,7 @@"{projectRoot}/build","{projectRoot}/out","{projectRoot}/node_modules/.cache",- "apps/web/.next/cache",+ "apps/web/.next","packages/storybook/storybook-static","packages/native/affine.*.node"],@@ -83,6 +83,9 @@}]},+ "export": {+ "dependsOn": ["build"]+ },"dev": {"dependsOn": ["^build"]},