From 0661a2096ac744278f7ad650b7c42123d3c2d51e Mon Sep 17 00:00:00 2001 From: Yakumo Hokori Date: Sun, 13 Jul 2025 00:33:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9f7fad1..b75b19d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -32,14 +32,21 @@ jobs: sudo apt-get update sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf + # 新增 pnpm/action-setup 来安装 pnpm + - name: setup pnpm + uses: pnpm/action-setup@v3 + with: + version: 8 # 你可以在此指定 pnpm 的版本 + + # 修改 setup-node 的缓存为 pnpm - name: setup node uses: actions/setup-node@v4 with: node-version: lts/* - cache: 'yarn' # Set this to npm, yarn or pnpm. + cache: 'pnpm' - name: install Rust stable - uses: dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightly + uses: dtolnay/rust-toolchain@stable with: # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds. targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} @@ -49,17 +56,19 @@ jobs: with: workspaces: './src-tauri -> target' + # 修改依赖安装命令为 pnpm install - name: install frontend dependencies # If you don't have `beforeBuildCommand` configured you may want to build your frontend here too. - run: yarn install # change this to npm or pnpm depending on which one you use. + run: pnpm install - uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version. + tagName: app-v__VERSION__ # the action automatically replaces __VERSION__ with the app version. releaseName: 'App v__VERSION__' releaseBody: 'See the assets to download this version and install.' releaseDraft: true prerelease: false - args: ${{ matrix.args }} \ No newline at end of file + args: ${{ matrix.args }} +