preactjs / compressed-size-action

GitHub Action that adds compressed size changes to your PRs.
https://github.com/marketplace/actions/compressed-size-action
MIT License
601 stars 84 forks source link

Allow setting environment variables before install #94

Closed swissspidy closed 1 month ago

swissspidy commented 1 year ago

Would be nice if it's somehow possible to set PUPPETEER_SKIP_DOWNLOAD=true before the action runs npm ci.

PixnBits commented 1 year ago

FWIW you might be able to do so via jobs.<job_id>.steps[*].env, i.e.:

...
    steps:
      - uses: actions/checkout@v2
      - uses: preactjs/compressed-size-action@v2
        env:
          PUPPETEER_SKIP_DOWNLOAD: true
rschristian commented 1 month ago

Indeed, I think you can use env on any arbitrary action, and would be the suggested solution.