Skip to content

Commit 40b9e32

Browse files
committed
fix(pnpm-install): pass working-directory to package_json_file
pnpm/action-setup reads the pnpm version from package.json. When the project lives in a subdirectory (e.g. impit-node), the root has no package.json and the version lookup fails. Forward the working-directory input so it finds the right file.
1 parent ea5bf00 commit 40b9e32

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pnpm-install/action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ runs:
2020
name: Install pnpm
2121
with:
2222
run_install: false
23+
package_json_file: ${{ inputs.working-directory }}/package.json
2324

2425
- name: Expose pnpm config(s) through "$GITHUB_OUTPUT"
2526
id: pnpm-config

0 commit comments

Comments
 (0)