From d8e3b9d5934693a0630042ab769b03764b86fd5b Mon Sep 17 00:00:00 2001 From: "to.watanabe" Date: Sat, 28 Mar 2026 12:23:50 +0900 Subject: [PATCH] fix(ci): remove --ignore-engines for Yarn Berry (v4+) Yarn Berry removed the --ignore-engines flag; engine checking is no longer a core feature. The deprecated flag causes yarn install to exit with error code 1. --- .github/workflows/ci.yml | 4 ++-- .github/workflows/reusable-test.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b71c594..757689f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -131,8 +131,8 @@ jobs: case "${{ matrix.pm }}" in npm) npm ci ;; pnpm) pnpm install --no-frozen-lockfile ;; - # --ignore-engines required for Node 18 compat with some devDependencies (e.g., markdownlint-cli) - yarn) yarn install --ignore-engines ;; + # Yarn Berry (v4+) removed --ignore-engines; engine checking is no longer a core feature + yarn) yarn install ;; bun) bun install ;; *) echo "Unsupported package manager: ${{ matrix.pm }}" && exit 1 ;; esac diff --git a/.github/workflows/reusable-test.yml b/.github/workflows/reusable-test.yml index e0fdc4fc..de55605c 100644 --- a/.github/workflows/reusable-test.yml +++ b/.github/workflows/reusable-test.yml @@ -121,7 +121,8 @@ jobs: case "${{ inputs.package-manager }}" in npm) npm ci ;; pnpm) pnpm install --no-frozen-lockfile ;; - yarn) yarn install --ignore-engines ;; + # Yarn Berry (v4+) removed --ignore-engines; engine checking is no longer a core feature + yarn) yarn install ;; bun) bun install ;; *) echo "Unsupported package manager: ${{ inputs.package-manager }}" && exit 1 ;; esac