https://github.com/github/codeql-action/pull/87/checks?check_run_id=811666672
Check if installed by yarn globally without any fs calls
fs
$ npm install is-yarn-global
Just require it in your package.
const isYarnGlobal = require('is-yarn-global'); console.log(isYarnGlobal());
MIT © LitoMore