pnpm / pnpm/setup

Allow `args` in `install` input

Open Beginner friendly
#28 1 comment 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
140
Forks
19
Avg merge
13h 19m
Merged PRs (30d)
3

Description

My usual CI workflow is the following:

- name: Install pnpm
  uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
  with:
    cache: true
    run_install: |
      - args: [--prefer-offline, --frozen-lockfile]

while --frozen-lockfile is enabled by default in the CI (see here) there is no way I can configure --prefer-offline in the current setup without running the installation in a separate step again. Before switching to this new action, it's a hard requirement for me to have the ability to configure the install options.

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 action parses the run_install input and invokes install; the issue provides the YAML shape and the desired --prefer-offline and --frozen-lockfile options. Done means the install input accepts args and passes those options through without requiring a separate installation step.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.