When working in a mono-repo and using the Action via the github url, setting SANITY_STUDIO_CONFIG_PATH to a path with a sanity config still fails with the error:
Error: Command "deploy" is not available outside of a Sanity project context.
Run the command again within a Sanity project directory, where "sanity"
is installed as a dependency.
at CommandRunner.runCommand (/usr/local/share/.config/yarn/global/node_modules/@sanity/cli/lib/_chunks-cjs/cli.js:71133:13)
at Object.runCli (/usr/local/share/.config/yarn/global/node_modules/@sanity/cli/lib/_chunks-cjs/cli.js:71531:38)
Describe the bug
When working in a mono-repo and using the Action via the github url, setting
SANITY_STUDIO_CONFIG_PATH
to a path with a sanity config still fails with the error:To Reproduce
Folder structure
workflow
However, it works if the Action is copied locally: