andresz1 / size-limit-action

Compare the real cost to run your JS app or lib to keep good performance in every pull request

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FEAT option to include install flags

Soviut opened this issue · comments

NPM 8 throws an error on peer dependency mismatches. I have an intentional mismatch that I need to ignore with the --legacy-peer-deps install flag.

It would be great if there was an option to pass install flags to the install step.

- uses: andresz1/size-limit-action@v1
  with:
    github_token: ${{ secrets.GITHUB_TOKEN }}
    install_flags: '--legacy-peer-deps'

Right now, I'm trying to use skip_step: install so that I can manually install, but I'm having issues with that approach #81

It seems like it would only be a matter of splitting and passing the flags as the second argument array to exec on this line.

await exec(`${manager} install`, [], {

I might try to make a PR to help out.

did anyone create a PR for install_flags?
skip: install
also not working for me