Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM package in subdirectory of repo does not work #155

Open
eighty4 opened this issue Jan 9, 2025 · 0 comments
Open

NPM package in subdirectory of repo does not work #155

eighty4 opened this issue Jan 9, 2025 · 0 comments

Comments

@eighty4
Copy link

eighty4 commented Jan 9, 2025

Here is a repo where the NPM package is in a subdir (in this case apex): https://github.com/eighty4/eighty4.tech

When trying pnpm/action-setup I've run through variations of the config without any way of getting past the action failing looking for the pnpm lockfile at the repository root. Here are variations I've tried.

As a user I would expect just setting package_json_file path would work:

      - uses: actions/checkout@v4
      - uses: pnpm/action-setup@v4
        with:
          package_json_file: apex/package.json

I tried changing the cwd of run_install:

      - uses: actions/checkout@v4
      - uses: pnpm/action-setup@v4
        with:
          package_json_file: apex/package.json
          run_install: |
            - cwd: apex
              args: []

Even with run_install: false it still fails on the missing repository root pnpm lock file:

      - uses: actions/checkout@v4
      - uses: pnpm/action-setup@v4
        with:
          package_json_file: apex/package.json
          run_install: false

Am I overlooking a configuration for this project structure to work with pnpm/action-setup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant