Help with getting yarn cache

Hi, there. I ran into a problem while I was trying to make Github Action work with Yarn Cache.
Here is my repo. Here is the log:

Run echo "::set-output name=dir::$(yarn cache dir)"
  echo "::set-output name=dir::$(yarn cache dir)"
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
Error: Process completed with exit code 1.

The action is here.
Any helps are welcome. Thanks in advance

Switch to c-hive/gha-yarn-cache@v2 does fix this issue