From 394483c363bab4ce48707e5b1801f740fb45e629 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Fri, 14 Mar 2025 16:49:43 +0800 Subject: [PATCH] chore(workflows): Update Yarn version to 4.6.0 in CI and release workflows --- .github/workflows/nightly-build.yml | 2 +- .github/workflows/pr-ci.yml | 44 +++-------------------------- .github/workflows/release.yml | 2 +- packages/database/package.json | 2 +- 4 files changed, 7 insertions(+), 43 deletions(-) diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 012b97a9..3160fdd2 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -27,7 +27,7 @@ jobs: node-version: 20 - name: Install corepack - run: corepack enable && corepack prepare yarn@4.3.1 --activate + run: corepack enable && corepack prepare yarn@4.6.0 --activate - name: Get yarn cache directory path id: yarn-cache-dir-path diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index 38a9cfa1..5eb8c392 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -6,17 +6,9 @@ on: branches: - main -permissions: - contents: write - jobs: build: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [macos-latest, windows-latest, ubuntu-latest] - fail-fast: false + runs-on: ubuntu-latest steps: - name: Check out Git repository @@ -28,7 +20,7 @@ jobs: node-version: 20 - name: Install corepack - run: corepack enable && corepack prepare yarn@4.3.1 --activate + run: corepack enable && corepack prepare yarn@4.6.0 --activate - name: Get yarn cache directory path id: yarn-cache-dir-path @@ -47,33 +39,5 @@ jobs: - name: Install Dependencies run: yarn install - - name: Build Linux - if: matrix.os == 'ubuntu-latest' - run: | - yarn build:npm linux - yarn build:linux - - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - RENDERER_VITE_AIHUBMIX_SECRET: ${{ vars.RENDERER_VITE_AIHUBMIX_SECRET }} - - - name: Build Mac - if: matrix.os == 'macos-latest' - run: | - yarn build:npm mac - yarn build:mac - env: - CSC_LINK: ${{ secrets.CSC_LINK }} - CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} - APPLE_ID: ${{ vars.APPLE_ID }} - APPLE_APP_SPECIFIC_PASSWORD: ${{ vars.APPLE_APP_SPECIFIC_PASSWORD }} - APPLE_TEAM_ID: ${{ vars.APPLE_TEAM_ID }} - RENDERER_VITE_AIHUBMIX_SECRET: ${{ vars.RENDERER_VITE_AIHUBMIX_SECRET }} - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Build Windows - if: matrix.os == 'windows-latest' - run: yarn build:win - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - RENDERER_VITE_AIHUBMIX_SECRET: ${{ vars.RENDERER_VITE_AIHUBMIX_SECRET }} + - name: Build Check + run: yarn build:check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 44e77aab..86cb1140 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,7 +43,7 @@ jobs: node-version: 20 - name: Install corepack - run: corepack enable && corepack prepare yarn@4.3.1 --activate + run: corepack enable && corepack prepare yarn@4.6.0 --activate - name: Get yarn cache directory path id: yarn-cache-dir-path diff --git a/packages/database/package.json b/packages/database/package.json index 2ff17a83..64ed88c9 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -1,6 +1,6 @@ { "name": "@cherry-studio/database", - "packageManager": "yarn@4.3.1", + "packageManager": "yarn@4.6.0", "dependencies": { "csv-parser": "^3.0.0", "sqlite3": "^5.1.7"