pnpm / action-setup

Install pnpm package manager
https://github.com/marketplace/actions/setup-pnpm
MIT License
899 stars 87 forks source link

Not working when install folder is subfolder #60

Closed Joren97 closed 1 year ago

Joren97 commented 1 year ago

I am trying setup pnpm in a subfolder of my repository, but this is not working.

HashemKhalifa commented 1 year ago

facing the same issue, with monorepo subfolders

melMass commented 1 year ago

Can you clarify a bit more? It works fine with monorepos

gsimone commented 1 year ago

@melMass the problem is when the pnpm-lock is not in the root dir. Eg.

my-apps
    app
        pnpm-lock.yaml # <= we should be able to set this
    not-a-pnpm-app
    another-not-pnpm-app
melMass commented 1 year ago

What monorepo manager do you use? Seems like a strange setup, but why not just cd to it?

Joren97 commented 1 year ago

Seems like I have found a solution. I added a version to use to the step. Also just cd into it did work. Closing this.