pnpm / pnpm/action-setup

Duplicate message in error: in the package.json with the key "packageManager"

Open
#104 1 comment 0 reactions 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

Running self-installer...
  Error: No pnpm version is specified.
  Please specify it by one of the following ways:
    - in the GitHub Action config with the key "version"
  Error: Error: No pnpm version is specified.
  Please specify it by one of the following ways:
    - in the GitHub Action config with the key "version"
    - in the package.json with the key "packageManager"
    - in the package.json with the key "packageManager"
      at readTarget (/home/runner/work/_actions/pnpm/action-setup/v2/dist/index.js:1:3939)
      at async runSelfInstaller (/home/runner/work/_actions/pnpm/action-setup/v2/dist/index.js:1:2928)
      at async install (/home/runner/work/_actions/pnpm/action-setup/v2/dist/index.js:1:2239)
      at async main (/home/runner/work/_actions/pnpm/action-setup/v2/dist/index.js:1:445)

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

The reported stack points to dist/index.js and readTarget; start there and trace the bundled output back to the action source. Confirm the package.json guidance is emitted once, then rerun the linked GitHub Actions job or an equivalent fixture to verify the duplicate line is gone.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.