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.
This commit is contained in:
to.watanabe
2026-03-28 12:23:50 +09:00
parent 7148d9006f
commit d8e3b9d593
2 changed files with 4 additions and 3 deletions

View File

@@ -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