Unning GitHub Action setup-node in sub directory #25647
-
Hi, I have a repository with a npm project in a sub directory. I liked to use Git Structure
Does someone has an idea? It doesn’t feels like an unusual requirement to have a sub directory with a node project. So I expect it should be working somehow. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
the working-directory keyword only works with a run command. The setup-node action isn’t designed to use that keyword. Why do you have to target that subfolder? WHy not just use setup-node to setup the version on the runner to be used? Then it will be used by your following run steps. |
Beta Was this translation helpful? Give feedback.
-
So the action should created the .npmrc with the given |
Beta Was this translation helpful? Give feedback.
-
You can set |
Beta Was this translation helpful? Give feedback.
-
Thanks. It’s not about caching. It’s to set registry url for publication. I’ve solved it now with.
|
Beta Was this translation helpful? Give feedback.
Thanks. It’s not about caching. It’s to set registry url for publication. I’ve solved it now with.