# Deploy

> Production deployment workflow. Testleri çalıştırır, build alır ve deploy eder.

- Skill: `erhankaraarslan/deploy` (Agent Skill)
- Install (CLI): `npx skillmds@latest add erhankaraarslan/deploy`
- Raw SKILL.md: https://api.skillmd.com/api/skills/erhankaraarslan/deploy/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: erhankaraarslan (https://skillmd.com/u/erhankaraarslan)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/erhankaraarslan/deploy

---


# Deploy Workflow

$ARGUMENTS ortamına deployment yapar.

## Deployment Adımları

1. **Pre-flight Checks**
   ```bash
   # Git durumu temiz mi?
   git status --porcelain
   
   # Doğru branch'te miyiz?
   git branch --show-current
   ```

2. **Run Tests**
   ```bash
   npm test
   ```

3. **Build**
   ```bash
   npm run build
   ```

4. **Deploy**
   - `dev`: Otomatik deploy
   - `staging`: Otomatik deploy + smoke test
   - `prod`: Manuel onay gerekli

## Rollback

Hata durumunda:
```bash
git revert HEAD
npm run deploy:rollback
```

## Checklist

- [ ] Testler geçti
- [ ] Build başarılı
- [ ] Environment variables kontrol edildi
- [ ] Database migration'lar çalıştı
- [ ] Health check OK

