Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: ensure
npx
compatibility with npm v7
As of now, `npx` in npm v6 does not prompt about the package about to be used. But things change with npm v7 where `npx` now prompts before installing anything. https://docs.npmjs.com/cli/v7/commands/npx > To prevent security and user-experience problems from mistyping > package names, `npx` prompts before installing anything. Suppress this > prompt with the `-y` or `--yes` option. However this flag `--yes` is not supported by npm v6 and would result in an error if used. We need to set that flag through `npm_config_`: https://docs.npmjs.com/cli/v6/using-npm/config > Any environment variables that start with `npm_config_` will be > interpreted as a configuration parameter. For example, putting > `npm_config_foo=bar` in your environment will set the `foo` > configuration parameter to `bar`. Any environment configurations that > are not given a value will be given the value of true. Config values > are case-insensitive, so `NPM_CONFIG_FOO=bar` will work the same. See: - https://dev.to/omrilotan/npx-breaking-on-ci-48ak
- Loading branch information