mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-13 21:33:32 +08:00
fix: use corepack pnpm on node 18
This commit is contained in:
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@@ -43,12 +43,18 @@ jobs:
|
|||||||
|
|
||||||
# Package manager setup
|
# Package manager setup
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
if: matrix.pm == 'pnpm'
|
if: matrix.pm == 'pnpm' && matrix.node != '18.x'
|
||||||
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.
|
||||||
# pnpm 10's self-installer requires newer Node runtime features than Node 18 provides.
|
version: 10
|
||||||
version: ${{ matrix.node == '18.x' && '9' || '10' }}
|
|
||||||
|
- name: Setup pnpm (via Corepack)
|
||||||
|
if: matrix.pm == 'pnpm' && matrix.node == '18.x'
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
corepack enable
|
||||||
|
corepack prepare pnpm@9 --activate
|
||||||
|
|
||||||
- name: Setup Yarn (via Corepack)
|
- name: Setup Yarn (via Corepack)
|
||||||
if: matrix.pm == 'yarn'
|
if: matrix.pm == 'yarn'
|
||||||
|
|||||||
12
.github/workflows/reusable-test.yml
vendored
12
.github/workflows/reusable-test.yml
vendored
@@ -35,12 +35,18 @@ jobs:
|
|||||||
node-version: ${{ inputs.node-version }}
|
node-version: ${{ inputs.node-version }}
|
||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
if: inputs.package-manager == 'pnpm'
|
if: inputs.package-manager == 'pnpm' && inputs.node-version != '18.x'
|
||||||
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.
|
||||||
# pnpm 10's self-installer requires newer Node runtime features than Node 18 provides.
|
version: 10
|
||||||
version: ${{ inputs.node-version == '18.x' && '9' || '10' }}
|
|
||||||
|
- name: Setup pnpm (via Corepack)
|
||||||
|
if: inputs.package-manager == 'pnpm' && inputs.node-version == '18.x'
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
corepack enable
|
||||||
|
corepack prepare pnpm@9 --activate
|
||||||
|
|
||||||
- name: Setup Yarn (via Corepack)
|
- name: Setup Yarn (via Corepack)
|
||||||
if: inputs.package-manager == 'yarn'
|
if: inputs.package-manager == 'yarn'
|
||||||
|
|||||||
Reference in New Issue
Block a user