Yak CI Login Fails

Hey discourse,

I’m having a problem creating a token for yak to use in my CI/CD.
I created an action : GitHub - crashcloud/yak-publish: Builds and publishes any Rhino and/or Grasshopper plugin(s)
And I’m trying to use it for this project: GitHub - structurecraft/NUnitTestRunner: The NUnitTestRunner allows for running of NUnit test assemblies inside of Rhino from a command

In the GithubActions run I get this error message:

There was an error retrieving your cached token. Please `yak login` again.
Published package src/bin\x64\Release\net48\nunittestrunner-1.0.0-rh7_27-any.yak successfully to https://yak.rhino3d.com

If I check yak I cannot see the NUnitTestRunner package. I tried creating the token again locally but I get this. And since the errors match, I assume I’m doing something wrong.

PS C:\Users\<user>\<project>> $yak = "C:\Program Files\Rhino 7\System\yak.exe"
PS C:\Users\<user>\<project>> & $yak login --ci
Your browser has been opened to visit:


Your non-expiring(+) token is shown below. Use this to set the YAK_TOKEN
environment variable on your build machine. Remember to keep it safe!

- - - - - - - - -


- - - - - - - - -

+ OK, actually this token expires in 49 years (2073-03-17T09:56:29.5589363-07:00)
There was an error retrieving your cached token. Please `yak login` again.
PS C:\Users\<user>\<project>>

– cs

For anyone else who has this issue, I had to explictly call & $yak login and then & $yak login --ci

1 Like