fix: use pnpm 9 for node 18 workflow jobs

This commit is contained in:
Affaan Mustafa
2026-04-13 00:13:54 -07:00
parent 6eadf786f5
commit bd207aabe1
2 changed files with 4 additions and 2 deletions

View File

@@ -47,7 +47,8 @@ jobs:
uses: pnpm/action-setup@08c4be7e2e672a47d11bd04269e27e5f3e8529cb # v6.0.0 uses: pnpm/action-setup@08c4be7e2e672a47d11bd04269e27e5f3e8529cb # v6.0.0
with: with:
# Keep an explicit pnpm major because this repo's packageManager is Yarn. # Keep an explicit pnpm major because this repo's packageManager is Yarn.
version: 10 # pnpm 10's self-installer requires newer Node runtime features than Node 18 provides.
version: ${{ matrix.node == '18.x' && '9' || '10' }}
- name: Setup Yarn (via Corepack) - name: Setup Yarn (via Corepack)
if: matrix.pm == 'yarn' if: matrix.pm == 'yarn'

View File

@@ -39,7 +39,8 @@ jobs:
uses: pnpm/action-setup@08c4be7e2e672a47d11bd04269e27e5f3e8529cb # v6.0.0 uses: pnpm/action-setup@08c4be7e2e672a47d11bd04269e27e5f3e8529cb # v6.0.0
with: with:
# Keep an explicit pnpm major because this repo's packageManager is Yarn. # Keep an explicit pnpm major because this repo's packageManager is Yarn.
version: 10 # pnpm 10's self-installer requires newer Node runtime features than Node 18 provides.
version: ${{ inputs.node-version == '18.x' && '9' || '10' }}
- name: Setup Yarn (via Corepack) - name: Setup Yarn (via Corepack)
if: inputs.package-manager == 'yarn' if: inputs.package-manager == 'yarn'