deploy
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDeploy to Main
部署至Main分支
Automates the complete deployment workflow for pushing changes to production.
自动化将变更推送至生产环境的完整部署工作流。
Workflow
工作流
- Build: Run to ensure no compilation errors
npm run build - Status Check: Check git status for uncommitted changes
- Commit: Commit changes with a descriptive message
- Deploy: Push directly to main to trigger production deployment
- Confirm: Provide deployment status
- 构建:运行以确保无编译错误
npm run build - 状态检查:检查git状态,查看是否有未提交的变更
- 提交:使用描述性消息提交变更
- 部署:直接推送到main分支以触发生产环境部署
- 确认:提供部署状态
Commands
命令
bash
undefinedbash
undefinedBuild project
Build project
npm run build
npm run build
Check status
Check status
git status
git log --oneline -3
git status
git log --oneline -3
Commit (if changes exist)
Commit (if changes exist)
git add -A
git commit -m "chore: <descriptive message>"
git add -A
git commit -m "chore: <descriptive message>"
Push directly to main
Push directly to main
git push origin main
undefinedgit push origin main
undefinedWhen to Use
使用场景
- "deploy to main"
- "push changes to production"
- "deploy these changes"
- "/deploy"
- "部署至main分支"
- "推送变更至生产环境"
- "部署这些变更"
- "/deploy"