Skip to content

Allow Configuration of Self-installer Settings #141

Open
@ChrisPage-AT

Description

@ChrisPage-AT

I am running into an issue where I need to pass some settings to the self-installer. Specifically, I am trying to pass --fetch-retries 5 since I am running into 429 (Too Many Requests) errors. I see on the documentation that there's a way to pass args in for the run_install function, so hopefully it won't be too difficult to add them for the self-installer bit.

Here's my code (yes, I'm using v4 of the action):

- uses: pnpm/action-setup@v4
        name: Install pnpm
        with:
          version: 9.7.0

Here's my current log output:

Run pnpm/action-setup@v4
  with:
    version: 9.7.0
    dest: ~/setup-pnpm
    run_install: null
    package_json_file: package.json
    standalone: false
  env:
    ...

Running self-installer...
   WARN  GET https://[AWS CodeArtifact Url] error (429). Will retry in 10 seconds. 2 retries left.
   WARN  GET https://[AWS CodeArtifact Url] error (429). Will retry in 1 minute. 1 retries left.
   ERR_PNPM_FETCH_429  GET https://[AWS CodeArtifact Url]: Too Many Requests - 429
  
  This error happened while installing a direct dependency of /home/runner/setup-pnpm
Error: Something went wrong, self-installer exits with code 1
Installation Completed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions