Deploy Workflow
Safe deployment checklist. Runs pre-deploy verification before any deployment action.
Steps
- Verify git credentials:
gh auth status— if failing, STOP and report - Run build with OOM prevention:
NODE_OPTIONS='--max-old-space-size=4096' npm run build— if OOM occurs, retry with 8192 - Run tests with
npm test— if any fail, stop and report - Check for port conflicts on the target port
- Verify required environment variables are set (check .env exists, don’t expose values)
- Check git status — warn if there are uncommitted changes
- Show a summary of what will be deployed (current branch, latest commit, build status)
- STOP and ask for explicit confirmation before proceeding with any deployment action
Important
- Do NOT push, deploy, or run any deployment commands without explicit user confirmation
- Do NOT proceed past a failed build or test step
- If deploying to Azure, verify the tier supports the required features first
- Always show what branch and commit will be deployed before asking for confirmation