diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9456e9db..17a563af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,11 +27,18 @@ jobs: run_install: false - name: Setup NodeJS + if: startsWith(matrix.os, 'macOS') != true && github.repository != 'th-ch/youtube-music' uses: actions/setup-node@v3 with: node-version: ${{ env.NODE_VERSION }} cache: 'pnpm' + - name: Setup NodeJS for macOS + if: startsWith(matrix.os, 'macOS') && github.repository != 'th-ch/youtube-music' + uses: actions/setup-node@v3 + with: + node-version: ${{ env.NODE_VERSION }} + - name: Install dependencies run: pnpm install --frozen-lockfile @@ -97,11 +104,18 @@ jobs: run_install: false - name: Setup NodeJS + if: startsWith(matrix.os, 'macOS') != true && github.repository != 'th-ch/youtube-music' uses: actions/setup-node@v3 with: node-version: ${{ env.NODE_VERSION }} cache: 'pnpm' + - name: Setup NodeJS for macOS + if: startsWith(matrix.os, 'macOS') && github.repository != 'th-ch/youtube-music' + uses: actions/setup-node@v3 + with: + node-version: ${{ env.NODE_VERSION }} + - name: Install dependencies run: pnpm install --frozen-lockfile