From 8e024a81457c1b6dcb1de47e823085ebcec561c4 Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Thu, 27 Aug 2026 01:05:31 +0800 Subject: [PATCH] chore(ci): hold for pnpm & node setup action for macos-15-intel --- .github/workflows/release-tamagotchi.yml | 29 ++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-tamagotchi.yml b/.github/workflows/release-tamagotchi.yml index a6eaa4342..d5884d818 100644 --- a/.github/workflows/release-tamagotchi.yml +++ b/.github/workflows/release-tamagotchi.yml @@ -119,12 +119,33 @@ jobs: xcodebuild -version actool --version - - uses: pnpm/setup@v1 + # NOTICE: + # pnpm 11 does not ship a working standalone executable for Intel macOS. + # Install pnpm through npm so it uses the Node.js runtime from setup-node. + # https://github.com/pnpm/pnpm/issues/11423 + # Remove this branch when the project uses pnpm 12 or later. + - uses: actions/setup-node@v6 if: matrix.os == 'macos-15-intel' with: - runtime: node@26 - cache: true - install: false + node-version: 26 + + - name: Install pnpm with npm + if: matrix.os == 'macos-15-intel' + run: npm install --global pnpm@11.24.0 + + - name: Get pnpm store path + if: matrix.os == 'macos-15-intel' + id: pnpm-store + run: echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT" + + - name: Cache pnpm store + if: matrix.os == 'macos-15-intel' + uses: actions/cache@v5 + with: + path: ${{ steps.pnpm-store.outputs.path }} + key: ${{ runner.os }}-${{ runner.arch }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-${{ runner.arch }}-pnpm-store- - uses: pnpm/setup@v2 if: matrix.os != 'macos-15-intel'