mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #280] [BUG] Can't use yarn #196
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#196
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LKay on GitHub (Jun 17, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/280
Whenever I try to call any
yarncommand theactreturns an error and fails to execute:Failed to replace env in config: ${{ inputs.auth-token }. I tried to search trough existing issues, over the internet and nothing with this exact error pops up.@Sumolari commented on GitHub (Aug 2, 2020):
This happened to me, too.
Here's a sample workflow I'm trying to run:
And I try to run it using:
Resulting in:
@izik1 commented on GitHub (Nov 3, 2020):
Thirding this with the above error
@github-actions[bot] commented on GitHub (Jan 3, 2021):
Issue is stale and will be closed in 7 days unless there is new activity
@fxnoob commented on GitHub (Jan 29, 2021):
Have you guys found a solution?
@Sumolari commented on GitHub (Jan 29, 2021):
I didn’t. I ended up not using this tool :(
@chetbox commented on GitHub (Apr 12, 2021):
I had the same problem but resolved it by switching to the
Largeimage duringactfirst-run.You can do this be deleting
~/.actrcthen runactagain.@dunklesToast commented on GitHub (Apr 12, 2021):
@chetbox yarn is not installed in the "slim" version. You can easily run
npm i -g yarnas a separate step if you don't want to have 18Gb of Images on your PC :D However I think this is not related to this issue.@trainoasis commented on GitHub (Oct 19, 2021):
I had to use
ubuntu:js-latestinstead of defaultubuntu:act-latest. Here is where I noticed that the first one includesyarnas well: https://hub.docker.com/r/catthehacker/ubuntu.@audishos commented on GitHub (Oct 20, 2021):
Thanks for this! Just want to add that this is done with the
-Por--platformflag since this wasn't immediately clear to me. This flag allows you to map theruns-onvalue to an image. Example mappingubuntu-latesttoubuntu:js-latest:@uccmen commented on GitHub (Nov 25, 2021):
Oddly, this didn't work for me, today. So I had to use
-P ubuntu-latest=node:14...@sbahman commented on GitHub (Oct 16, 2022):
One can replace
.../catthehacker/ubuntu:act-latestwith.../catthehacker/ubuntu:js-latestin the.actrcfile - then one does not need to specify it everytime.@mattkoch-bb commented on GitHub (Apr 11, 2023):
How long does this take to download? I tried this a few times and my jobs hung.
@dunklesToast commented on GitHub (Apr 11, 2023):
The image is approx. 18GB large. Iirc act does not show the download progress but you can try pulling it via Docker manually and watch the progress there. Act should then use that image without any download steps.
@catthehacker commented on GitHub (Apr 11, 2023):
You can use verbose option to see progress
@jlongman commented on GitHub (Oct 24, 2023):
Also, if you're on a non-linux system I recommend doing a
docker pull imagenameoutside ofact. If your VM runs out of disk space you won't see it otherwise.