Using npx
(Node Package Runner) in a GitHub Action can be difficult, because for security reasons the command requires to type YES at a prompt if the package is not present in the local project dependencies. This can be suppressed by providing --yes
in version 7. But there is a workaround for v6 and above, by passing yes via environment variable: npm_config_yes=true npx ...
https://github.com/npm/cli/issues/2226
#NPX #GitHubActions
Comments