From e343bd821f0e04bdb2989dd979d8bb30e2758846 Mon Sep 17 00:00:00 2001 From: BryanFRD Date: Mon, 7 Sep 2026 10:49:02 +0200 Subject: [PATCH] chore(ci): let pnpm-version follow packageManager by default --- .github/workflows/reusable-ci-astro.yml | 7 ++++++- .github/workflows/reusable-ci-node.yml | 8 ++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/reusable-ci-astro.yml b/.github/workflows/reusable-ci-astro.yml index 5edcdec..0281df2 100644 --- a/.github/workflows/reusable-ci-astro.yml +++ b/.github/workflows/reusable-ci-astro.yml @@ -15,8 +15,13 @@ on: type: string default: '24' pnpm-version: + description: >- + pnpm version for `pnpm/action-setup`. Empty, the default, makes the + action read `packageManager` from the caller's package.json, which + keeps CI on the version the repository actually pins. Set it only for + a repository that has no `packageManager` field. type: string - default: '10' + default: '' install-args: type: string default: '--frozen-lockfile' diff --git a/.github/workflows/reusable-ci-node.yml b/.github/workflows/reusable-ci-node.yml index 85f0c3e..c311c0f 100644 --- a/.github/workflows/reusable-ci-node.yml +++ b/.github/workflows/reusable-ci-node.yml @@ -24,9 +24,13 @@ on: type: string default: '24' pnpm-version: - description: 'pnpm version' + description: >- + pnpm version for `pnpm/action-setup`. Empty, the default, makes the + action read `packageManager` from the caller's package.json, which + keeps CI on the version the repository actually pins. Set it only for + a repository that has no `packageManager` field. type: string - default: '10' + default: '' package-manager: description: 'Package manager (pnpm, npm, yarn)' type: string