We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sanity deploy
Describe the bug
sanity deploy does not return a non-zero exit code for the CLI error "Unauthorized - Session not found".
This causes a GitHub Action that automates deployments to fail silently.
To Reproduce
Create a GitHub Action with the following step:
- run: npm run deploy env: SANITY_AUTH_TOKEN: "invalid token"
Expected behavior
It's expected that the workflow will signal a failure in GitHub checks.
Screenshots
Which versions of Sanity are you using?
@sanity/cli (global) 3.74.1 (up to date) @sanity/cli 3.74.1 (up to date) @sanity/vision 3.74.1 (up to date) sanity 3.74.1 (up to date)
What operating system are you using?
macOS 15.3 (24D60)
Which versions of Node.js / npm are you running?
npm: 10.9.2 node: 22.13.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
sanity deploy
does not return a non-zero exit code for the CLI error "Unauthorized - Session not found".This causes a GitHub Action that automates deployments to fail silently.
To Reproduce
Create a GitHub Action with the following step:
Expected behavior
It's expected that the workflow will signal a failure in GitHub checks.
Screenshots
Which versions of Sanity are you using?
What operating system are you using?
macOS 15.3 (24D60)
Which versions of Node.js / npm are you running?
The text was updated successfully, but these errors were encountered: