Skip to content

Commit 8470ddd

Browse files
committed
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.
1 parent 34be977 commit 8470ddd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pnpm-install/action.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: "pnpm install"
22
description: "Run pnpm install with cache enabled"
33

4+
inputs:
5+
working-directory:
6+
description: "Directory containing pnpm-lock.yaml (defaults to repo root)"
7+
required: false
8+
default: "."
9+
410
runs:
511
using: "composite"
612
steps:
@@ -37,6 +43,7 @@ runs:
3743
3844
- name: Install dependencies
3945
shell: bash
46+
working-directory: ${{ inputs.working-directory }}
4047
run: |
4148
pnpm install --frozen-lockfile --prefer-offline --loglevel error
4249
env:

0 commit comments

Comments
 (0)