for anyone using pnpm version ^8. you either want to update pnpm version in the github actions to 8 or follow the steps mentioned [here](https://github.com/pnpm/pnpm/issues/6649#issuecomment-1579588911)