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
ci: setup pnpm from corepack config to avoid flaky lockfile (#1258)
LongYinan6138fefa9e74
diff --git a/.github/workflows/build-test-version.yml b/.github/workflows/build-test-version.ymlindex 53dcf3bfa6..84a7379d50 100644--- a/.github/workflows/build-test-version.yml+++ b/.github/workflows/build-test-version.yml@@ -23,13 +23,11 @@ jobs:environment: developmentsteps:- - uses: actions/checkout@v2+ - uses: actions/checkout@v3- uses: pnpm/action-setup@v2- with:- version: 'latest'- name: Use Node.js- uses: actions/setup-node@v2+ uses: actions/setup-node@v3with:node-version: 18.xregistry-url: https://npm.pkg.github.com@@ -98,7 +96,7 @@ jobs:steps:- name: Check out the repo- uses: actions/checkout@v2+ uses: actions/checkout@v3- name: Download artifactuses: actions/download-artifact@v3diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 5cf7ee685f..2c12979a3b 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -22,15 +22,14 @@ jobs:environment: developmentsteps:- - uses: actions/checkout@v2+ - uses: actions/checkout@v3- uses: pnpm/action-setup@v2- with:- version: 'latest'- name: Use Node.js- uses: actions/setup-node@v2+ uses: actions/setup-node@v3with:node-version: 18.x+ cache: 'pnpm'- name: Restore cacheuses: actions/cache@v3@@ -73,8 +72,7 @@ jobs:steps:- uses: actions/checkout@v3- uses: pnpm/action-setup@v2- with:- version: 'latest'+- uses: actions/setup-node@v3with:node-version: 18.x@@ -131,13 +129,11 @@ jobs:environment: productionsteps:- - uses: actions/checkout@v2+ - uses: actions/checkout@v3- uses: pnpm/action-setup@v2- with:- version: 'latest'- name: Use Node.js- uses: actions/setup-node@v2+ uses: actions/setup-node@v3with:node-version: 18.xregistry-url: https://npm.pkg.github.com@@ -199,7 +195,7 @@ jobs:steps:- name: Check out the repo- uses: actions/checkout@v2+ uses: actions/checkout@v3- name: Download artifactuses: actions/download-artifact@v3diff --git a/.github/workflows/changlog.yml b/.github/workflows/changlog.ymlindex ef3d2d2206..ad6e8473d3 100644--- a/.github/workflows/changlog.yml+++ b/.github/workflows/changlog.yml@@ -20,13 +20,11 @@ jobs:pull-requests: writecontents: writesteps:- - uses: actions/checkout@v2+ - uses: actions/checkout@v3- uses: pnpm/action-setup@v2- with:- version: 'latest'- name: Use Node.js- uses: actions/setup-node@v2+ uses: actions/setup-node@v3with:node-version: 18.xregistry-url: https://npm.pkg.github.comdiff --git a/.github/workflows/client-app.yml b/.github/workflows/client-app.ymlindex 705c323a3f..040c56661a 100644--- a/.github/workflows/client-app.yml+++ b/.github/workflows/client-app.yml@@ -34,7 +34,7 @@ jobs:RELEASE_UPLOAD_ID: ${{ steps.create_release.outputs.id }}steps:- - uses: actions/checkout@v2+ - uses: actions/checkout@v3- name: Query version numberid: get_versionshell: bash@@ -72,29 +72,16 @@ jobs:run: |sudo apt-get updatesudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf+ - name: Install pnpm+ uses: pnpm/action-setup@v2- name: Set up Node.jsuses: actions/setup-node@v3with:node-version: 18.x+ cache: 'pnpm'- name: install Rust stableuses: dtolnay/rust-toolchain@stable- - name: Install pnpm- uses: pnpm/action-setup@v2- with:- version: latest- - name: Get pnpm store directory- id: pnpm-cache- shell: bash- run: |- echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT- - name: Get npm cache directory- uses: actions/cache@v3- id: cache- with:- path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}- key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}- restore-keys: |- ${{ runner.os }}-pnpm-store-+- name: Get rust cacheuses: Swatinem/rust-cache@v2id: rust-cachediff --git a/.github/workflows/languages-sync.yml b/.github/workflows/languages-sync.ymlindex 78630b7b4e..eb2dbea638 100644--- a/.github/workflows/languages-sync.yml+++ b/.github/workflows/languages-sync.yml@@ -35,8 +35,6 @@ jobs:- name: Use pnpmuses: pnpm/action-setup@v2- with:- version: 7- name: Use Node.js ${{ matrix.node-version }}# https://github.com/actions/setup-nodediff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex 3afb36a35c..b149ff8226 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -19,10 +19,8 @@ jobs:environment: developmentsteps:- - uses: actions/checkout@v2+ - uses: actions/checkout@v3- uses: pnpm/action-setup@v2- with:- version: 'latest'- name: Use Node.jsuses: actions/setup-node@v2@@ -82,7 +80,7 @@ jobs:steps:- name: Check out the repo- uses: actions/checkout@v2+ uses: actions/checkout@v3- name: Download artifactuses: actions/download-artifact@v3diff --git a/.github/workflows/update-block-suite.yml b/.github/workflows/update-block-suite.ymlindex c0691d2c14..e4ef649798 100644--- a/.github/workflows/update-block-suite.yml+++ b/.github/workflows/update-block-suite.yml@@ -24,8 +24,6 @@ jobs:- name: Use pnpmuses: pnpm/action-setup@v2- with:- version: 7- name: Use Node.js 18# https://github.com/actions/setup-nodediff --git a/package.json b/package.jsonindex db111253ba..c5b4b1732c 100644--- a/package.json+++ b/package.json@@ -65,5 +65,6 @@"patchedDependencies": {"@tauri-apps/[email protected]": "patches/@[email protected]"}- }+ },+ "packageManager": "[email protected]"}