From 8470dddace9ac5e796cfcb7c5bb2c0f86ade6fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ad=C3=A1mek?= Date: Thu, 16 Apr 2026 12:12:47 +0200 Subject: [PATCH] feat(pnpm-install): add working-directory input Allows repos where the pnpm project lives in a subdirectory (e.g. impit/impit-node) to use the shared action instead of inlining pnpm/action-setup + manual install. --- pnpm-install/action.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pnpm-install/action.yaml b/pnpm-install/action.yaml index 43ebc67..a95d2e7 100644 --- a/pnpm-install/action.yaml +++ b/pnpm-install/action.yaml @@ -1,6 +1,12 @@ name: "pnpm install" description: "Run pnpm install with cache enabled" +inputs: + working-directory: + description: "Directory containing pnpm-lock.yaml (defaults to repo root)" + required: false + default: "." + runs: using: "composite" steps: @@ -37,6 +43,7 @@ runs: - name: Install dependencies shell: bash + working-directory: ${{ inputs.working-directory }} run: | pnpm install --frozen-lockfile --prefer-offline --loglevel error env: