'Pass text file as CLI argument in NPM script in GitHub action

I have very long cmd command in npm script and I try to extract some part of it into text file, and then pass its content as arguments.

"build": "npm-run-all --print-label $(< build-order.txt)",

It is working locally, but when i run this command on GitHub action nothing happens enter image description here There is not errors, just nothing.

I used https://github.com/marketplace/actions/debugging-with-tmate to try to run this command in terminal and when i just execute pnpm npm-run-all --print-label $(< build-order.txt) it is working, but when just pnpm build again nothing happens. It feels like something wrong with running npm script itself on github action.



Solution 1:[1]

Looks like there was some issue on GitHub actions, this helped

"build": "npm-run-all --print-label $(cat build-order.txt)",

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 aspirisen