JamieMason / JamieMason/syncpack-github-action

syncpack GHA fails if `npm -g` permission denied

Open
#9 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
14
Forks
5
PR merge metrics
No merged PRs in 30d

Description

My org is running GHA action runners without root access, which means that `npm install -g` returns permission denied, and this is causing the syncpack GHA to fail (because it always installs syncpack with `-g`). Would you be interested in a PR that adds a config option for whether `npm install` is run with `-g` or not?

(Yeah, there are other ways to solve this problem long-term, like using `bun`, but I am trying to keep this simple.)

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 at the GitHub Action entry point and locate the command that installs syncpack with npm. Add a configuration option that controls whether the install uses the global flag, then verify that the action can run on a runner without root access.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.