-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Can't install npm dependencies #86
Comments
Have you tried configuring another image? I had some (limited) success with I'm wondering about the default home dir |
Interesting thing: In this repo https://github.com/SAP/project-piper-action this job works
but this does not
It seems to fail in installing packages, I don't understand why. |
If the Github action docs are up to date there was an update to the readme recently (b48a0ef) saying to use the image |
Thanks for the image idea @fwilhe. |
Although if there is a solution for a more lightweight image that would be cool as the install took about an hour ;-; |
If you don't have fast internet, this is gonna take way more than 1 hour 😆 |
I think the issue is actually how I implemented the containers around steps that use actions. There is a separate step used for In your case, I'm guessing this is a misunderstanding on my part about how GitHub Actions works...is it your understanding that the |
not entirely sure but it was my understanding that uses steps can persist stuff looking through https://github.com/actions/setup-go it seems like it just interacts directly with the runner? |
Alright, I have a plan:
What's a one-off container? Some steps will NOT run in the job container:
Will work on this in coming days on branch https://github.com/nektos/act/tree/ISS-86 |
looks solid thanks a bunch :) |
I've been trying to get my github actions working locally with act (really cool tool btw) but I can't seem to get npm working.
Heres an example workflow to show the problem:
Running command
act -j do-stuff -s NPM_TOKEN=XXXX_XXXX_XXXX
I get this output
In the verbose output the verbose output says
npm: command not found
which causes the exit.I thought maybe it was the same issue as #85 but after following @davidalger's steps the output was the same. (I'm also on macOS)
The text was updated successfully, but these errors were encountered: