pnpm / pnpm/action-setup

Allow Configuration of Self-installer Settings

Open
#141 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
217
Avg merge
8h 42m
Merged PRs (30d)
1

Description

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!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the self-installer is invoked and compare it with the documented run_install function arguments. Confirm how the action input could carry settings such as --fetch-retries, then verify that the self-installer uses them and that the reported 429 installation case is covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.