frontend-maven-plugin
frontend-maven-plugin copied to clipboard
Bug: pnpm not found if running a goal which has a reference to other goals
Hi,
If a goal within package.json contains a reference to another (p)npm goal (like "test2": "pnpm build && pnpm test") the build fails with sh: 1: pnpm: not found:
[INFO] [INFO] > [email protected] test2
[INFO] [INFO] > pnpm build && pnpm test
[INFO] [INFO]
[INFO] [INFO] /tmp/test2-12410452.sh: 1: pnpm: not found
Here's a test repo demonstrating the issue: https://github.com/Haarolean/frontend-maven-plugin And here's a workflow run: https://github.com/Haarolean/frontend-maven-plugin/actions/runs/8206166129