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
chore: cleanup ci
DarkSky6dbbcd393ce4
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 205e9664d3..bcc0166423 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -35,8 +35,6 @@ jobs:scope: '@toeverything'cache: 'pnpm'- - run: node scripts/module-resolve/ci.js-- name: Restore cacheuses: actions/cache@v3with:@@ -48,13 +46,8 @@ jobs:restore-keys: |${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-- - name: Install dependencies- run: pnpm install --no-frozen-lockfile- env:- NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}-- name: Build- run: pnpm build+ run: pnpm install && pnpm buildenv:NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}@@ -71,6 +64,7 @@ jobs:uses: actions/upload-artifact@v3with:path: ./packages/app/.next+lint:name: Lint and E2E Testruns-on: ubuntu-latest@@ -130,7 +124,7 @@ jobs:name: Build Communityif: github.ref == 'refs/heads/master'runs-on: self-hosted- environment: production+ environment: developmentsteps:- uses: actions/checkout@v2@@ -234,7 +228,7 @@ jobs:name: Build LiveDemoif: github.ref == 'refs/heads/master'runs-on: self-hosted- environment: production+ environment: developmentsteps:- uses: actions/checkout@v2diff --git a/.github/workflows/temp_test.yml b/.github/workflows/temp_test.ymldeleted file mode 100644index 68c99a8fca..0000000000--- a/.github/workflows/temp_test.yml+++ /dev/null@@ -1,139 +0,0 @@-name: Pathfinder Check--on:- push:- branches: [feat/filesystem_and_search, pathfinder1.1]- pull_request:- branches: [feat/filesystem_and_search, pathfinder1.1]--# Cancels all previous workflow runs for pull requests that have not completed.-# See https://docs.github.com/en/actions/using-jobs/using-concurrency-concurrency:- # The concurrency group contains the workflow name and the branch name for- # pull requests or the commit hash for any other events.- group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}- cancel-in-progress: true--jobs:- build:- name: Build on Pull Request- if: github.ref != 'refs/heads/master'- runs-on: self-hosted- environment: development-- steps:- - uses: actions/checkout@v2- - uses: pnpm/action-setup@v2- with:- version: 'latest'-- - name: Use Node.js- uses: actions/setup-node@v2- with:- node-version: 18.x- registry-url: https://npm.pkg.github.com- scope: '@toeverything'- cache: 'pnpm'-- - run: node scripts/module-resolve/ci.js-- - name: Restore cache- uses: actions/cache@v3- with:- path: |- .next/cache- # Generate a new cache whenever packages or source files change.- key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}- # If source files changed but packages didn't, rebuild from a prior cache.- restore-keys: |- ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}--- - name: Install dependencies- run: pnpm install --no-frozen-lockfile- env:- NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}-- - name: Build- run: pnpm build- env:- NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}- NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}- NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}- NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }}- NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }}- NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}- NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}-- - name: Export- run: pnpm export-- - name: Upload artifact- uses: actions/upload-artifact@v3- with:- path: ./packages/app/.next-- lint:- name: Lint and E2E Test- runs-on: ubuntu-latest- environment: development- needs: build-- steps:- - uses: actions/checkout@v2- - uses: pnpm/action-setup@v2- with:- version: 'latest'-- - name: Use Node.js- uses: actions/setup-node@v2- with:- node-version: 18.x- cache: 'pnpm'-- - name: Restore cache- uses: actions/cache@v3- with:- path: |- .next/cache- # Generate a new cache whenever packages or source files change.- key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}- # If source files changed but packages didn't, rebuild from a prior cache.- restore-keys: |- ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}--- - name: Install dependencies- run: pnpm install- env:- NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}-- - name: Download artifact- uses: actions/download-artifact@v3- with:- name: artifact- path: packages/app/.next/- # Temporary shutdown of E2E testing- - name: Lint & E2E Test- run: |- pnpm lint --max-warnings=0- env:- NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}- NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}- NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}- NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }}- NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }}- NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}- NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}- # - name: Lint & E2E Test- # run: |- # pnpm lint --max-warnings=0- # PLAYWRIGHT_BROWSERS_PATH=0 npx playwright install chromium- # PLAYWRIGHT_BROWSERS_PATH=0 pnpm test- # PLAYWRIGHT_BROWSERS_PATH=0 pnpm test:dc- # env:- # NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}- # NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}- # NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}- # NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }}- # NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }}- # NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}- # NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}diff --git a/.vscode/settings.json b/.vscode/settings.jsonindex 11790ad748..3b157a8bda 100644--- a/.vscode/settings.json+++ b/.vscode/settings.json@@ -3,5 +3,5 @@"editor.defaultFormatter": "esbenp.prettier-vscode","editor.formatOnSave": true,"editor.formatOnSaveMode": "file",- "cSpell.words": ["blocksuite", "livedemo", "testid"]+ "cSpell.words": ["blocksuite", "livedemo", "pnpm", "testid"]}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 203b6e53a5..c628062826 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -3776,8 +3776,8 @@ packages:- supports-colordev: true- /@typescript-eslint/parser/5.38.0_76twfck5d7crjqrmw4yltga7zm:- resolution: {integrity: sha512-/F63giJGLDr0ms1Cr8utDAxP2SPiglaD6V+pCOcG35P2jCqdfR7uuEhz1GIC3oy4hkUF8xA1XSXmd9hOh/a5EA==}+ /@typescript-eslint/parser/5.48.0_76twfck5d7crjqrmw4yltga7zm:+ resolution: {integrity: sha512-1mxNA8qfgxX8kBvRDIHEzrRGrKHQfQlbW6iHyfHYS0Q4X1af+S6mkLNtgCOsGVl8+/LUPrqdHMssAemkrQ01qg==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}peerDependencies:eslint: ^6.0.0 || ^7.0.0 || ^8.0.0@@ -3786,9 +3786,9 @@ packages:typescript:optional: truedependencies:- '@typescript-eslint/scope-manager': 5.38.0- '@typescript-eslint/types': 5.38.0- '@typescript-eslint/typescript-estree': [email protected]+ '@typescript-eslint/scope-manager': 5.48.0+ '@typescript-eslint/types': 5.48.0+ '@typescript-eslint/typescript-estree': [email protected]debug: 4.3.4eslint: 8.22.0typescript: 4.8.3@@ -3816,14 +3816,6 @@ packages:- supports-colordev: true- /@typescript-eslint/scope-manager/5.38.0:- resolution: {integrity: sha512-ByhHIuNyKD9giwkkLqzezZ9y5bALW8VNY6xXcP+VxoH4JBDKjU5WNnsiD4HJdglHECdV+lyaxhvQjTUbRboiTA==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dependencies:- '@typescript-eslint/types': 5.38.0- '@typescript-eslint/visitor-keys': 5.38.0- dev: true-/@typescript-eslint/scope-manager/5.48.0:resolution: {integrity: sha512-0AA4LviDtVtZqlyUQnZMVHydDATpD9SAX/RC5qh6cBd3xmyWvmXYF+WT1oOmxkeMnWDlUVTwdODeucUnjz3gow==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -3852,18 +3844,13 @@ packages:- supports-colordev: true- /@typescript-eslint/types/5.38.0:- resolution: {integrity: sha512-HHu4yMjJ7i3Cb+8NUuRCdOGu2VMkfmKyIJsOr9PfkBVYLYrtMCK/Ap50Rpov+iKpxDTfnqvDbuPLgBE5FwUNfA==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dev: true-/@typescript-eslint/types/5.48.0:resolution: {integrity: sha512-UTe67B0Ypius0fnEE518NB2N8gGutIlTojeTg4nt0GQvikReVkurqxd2LvYa9q9M5MQ6rtpNyWTBxdscw40Xhw==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}dev: true- /@typescript-eslint/typescript-estree/[email protected]:- resolution: {integrity: sha512-6P0RuphkR+UuV7Avv7MU3hFoWaGcrgOdi8eTe1NwhMp2/GjUJoODBTRWzlHpZh6lFOaPmSvgxGlROa0Sg5Zbyg==}+ /@typescript-eslint/typescript-estree/[email protected]:+ resolution: {integrity: sha512-7pjd94vvIjI1zTz6aq/5wwE/YrfIyEPLtGJmRfyNR9NYIW+rOvzzUv3Cmq2hRKpvt6e9vpvPUQ7puzX7VSmsEw==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}peerDependencies:typescript: '*'@@ -3871,8 +3858,8 @@ packages:typescript:optional: truedependencies:- '@typescript-eslint/types': 5.38.0- '@typescript-eslint/visitor-keys': 5.38.0+ '@typescript-eslint/types': 5.48.0+ '@typescript-eslint/visitor-keys': 5.48.0debug: 4.3.4globby: 11.1.0is-glob: 4.0.3@@ -3924,14 +3911,6 @@ packages:- typescriptdev: true- /@typescript-eslint/visitor-keys/5.38.0:- resolution: {integrity: sha512-MxnrdIyArnTi+XyFLR+kt/uNAcdOnmT+879os7qDRI+EYySR4crXJq9BXPfRzzLGq0wgxkwidrCJ9WCAoacm1w==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dependencies:- '@typescript-eslint/types': 5.38.0- eslint-visitor-keys: 3.3.0- dev: true-/@typescript-eslint/visitor-keys/5.48.0:resolution: {integrity: sha512-5motVPz5EgxQ0bHjut3chzBkJ3Z3sheYVcSwS5BpHZpLqSptSmELNtGixmgj65+rIfhvtQTz5i9OP2vtzdDH7Q==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -5014,11 +4993,11 @@ packages:dependencies:'@next/eslint-plugin-next': 12.3.1'@rushstack/eslint-patch': 1.2.0- '@typescript-eslint/parser': 5.38.0_76twfck5d7crjqrmw4yltga7zm+ '@typescript-eslint/parser': 5.48.0_76twfck5d7crjqrmw4yltga7zmeslint: 8.22.0eslint-import-resolver-node: 0.3.6eslint-import-resolver-typescript: 2.7.1_2iahngt3u2tkbdlu6s4gkur3pu- eslint-plugin-import: 2.26.0_dz6mtv6jua3j7xbldvgsafodwi+ eslint-plugin-import: 2.26.0_zznokraecjt4ixvvqcdste35vqeslint-plugin-jsx-a11y: [email protected]eslint-plugin-react: [email protected]eslint-plugin-react-hooks: [email protected]@@ -5089,7 +5068,7 @@ packages:dependencies:debug: 4.3.4eslint: 8.22.0- eslint-plugin-import: 2.26.0_dz6mtv6jua3j7xbldvgsafodwi+ eslint-plugin-import: 2.26.0_zznokraecjt4ixvvqcdste35vqglob: 7.2.3is-glob: 4.0.3resolve: 1.22.1@@ -5116,7 +5095,7 @@ packages:- supports-colordev: true- /eslint-module-utils/2.7.4_c3nlkncy4cvyvjj2ycqweyustu:+ /eslint-module-utils/2.7.4_rwfyzivsgbql5kqdd6lovekmku:resolution: {integrity: sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==}engines: {node: '>=4'}peerDependencies:@@ -5137,16 +5116,16 @@ packages:eslint-import-resolver-webpack:optional: truedependencies:- '@typescript-eslint/parser': 5.38.0_76twfck5d7crjqrmw4yltga7zm+ '@typescript-eslint/parser': 5.48.0_p4cjf2r47dnfiqufepc5hp43sqdebug: 3.2.7- eslint: 8.22.0+ eslint: 8.31.0eslint-import-resolver-node: 0.3.6- eslint-import-resolver-typescript: 2.7.1_2iahngt3u2tkbdlu6s4gkur3pu+ eslint-import-resolver-typescript: 2.7.1_ol7jqilc3wemtdbq3nzhywgxq4transitivePeerDependencies:- supports-colordev: true- /eslint-module-utils/2.7.4_rwfyzivsgbql5kqdd6lovekmku:+ /eslint-module-utils/2.7.4_tq5q2x4pem2nmnr5fqx62jngeq:resolution: {integrity: sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==}engines: {node: '>=4'}peerDependencies:@@ -5167,16 +5146,16 @@ packages:eslint-import-resolver-webpack:optional: truedependencies:- '@typescript-eslint/parser': 5.48.0_p4cjf2r47dnfiqufepc5hp43sq+ '@typescript-eslint/parser': 5.48.0_76twfck5d7crjqrmw4yltga7zmdebug: 3.2.7- eslint: 8.31.0+ eslint: 8.22.0eslint-import-resolver-node: 0.3.6- eslint-import-resolver-typescript: 2.7.1_ol7jqilc3wemtdbq3nzhywgxq4+ eslint-import-resolver-typescript: 2.7.1_2iahngt3u2tkbdlu6s4gkur3putransitivePeerDependencies:- supports-colordev: true- /eslint-plugin-import/2.26.0_dz6mtv6jua3j7xbldvgsafodwi:+ /eslint-plugin-import/2.26.0_o2ymnzkcx6ynnxgq4q5neiwzpe:resolution: {integrity: sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==}engines: {node: '>=4'}peerDependencies:@@ -5186,14 +5165,14 @@ packages:'@typescript-eslint/parser':optional: truedependencies:- '@typescript-eslint/parser': 5.38.0_76twfck5d7crjqrmw4yltga7zm+ '@typescript-eslint/parser': 5.48.0_p4cjf2r47dnfiqufepc5hp43sqarray-includes: 3.1.5array.prototype.flat: 1.3.0debug: 2.6.9doctrine: 2.1.0- eslint: 8.22.0+ eslint: 8.31.0eslint-import-resolver-node: 0.3.6- eslint-module-utils: 2.7.4_c3nlkncy4cvyvjj2ycqweyustu+ eslint-module-utils: 2.7.4_rwfyzivsgbql5kqdd6lovekmkuhas: 1.0.3is-core-module: 2.10.0is-glob: 4.0.3@@ -5207,7 +5186,7 @@ packages:- supports-colordev: true- /eslint-plugin-import/2.26.0_o2ymnzkcx6ynnxgq4q5neiwzpe:+ /eslint-plugin-import/2.26.0_zznokraecjt4ixvvqcdste35vq:resolution: {integrity: sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==}engines: {node: '>=4'}peerDependencies:@@ -5217,14 +5196,14 @@ packages:'@typescript-eslint/parser':optional: truedependencies:- '@typescript-eslint/parser': 5.48.0_p4cjf2r47dnfiqufepc5hp43sq+ '@typescript-eslint/parser': 5.48.0_76twfck5d7crjqrmw4yltga7zmarray-includes: 3.1.5array.prototype.flat: 1.3.0debug: 2.6.9doctrine: 2.1.0- eslint: 8.31.0+ eslint: 8.22.0eslint-import-resolver-node: 0.3.6- eslint-module-utils: 2.7.4_rwfyzivsgbql5kqdd6lovekmku+ eslint-module-utils: 2.7.4_tq5q2x4pem2nmnr5fqx62jngeqhas: 1.0.3is-core-module: 2.10.0is-glob: 4.0.3