Chuẩn bị release — changelog, version bump, checklist trước khi deploy lên Azure production
## ✅ Pre-Release Checklist v[X.Y.Z]
### Code Quality
- [ ] `npm run type-check` PASS (FE)
- [ ] `npm run lint` PASS (FE)
- [ ] `npx tsc --noEmit` PASS (MO)
- [ ] `.\mvnw.cmd test` PASS (BE)
- [ ] Không có `console.log` / debug code còn sót
- [ ] Không có hardcoded credentials
### Security
- [ ] `.env` files không bị commit vào git
- [ ] JWT secret đủ mạnh (đã set trong Azure App Settings)
- [ ] CORS origins đúng (production URLs, không có localhost)
- [ ] Stripe keys dùng production key (không dùng test key khi live)
- [ ] VNPay: chuyển từ Sandbox sang Production (nếu go-live)
- [ ] NFC uid validation hoạt động (UNIQUE constraint verify)
### Functionality
- [ ] Auth flow hoạt động (login, register, Google OAuth2)
- [ ] NFC card binding (Staff) + scanning (Customer) hoạt động
- [ ] Order + Payment flow hoạt động (Stripe + VNPay)
- [ ] Tarot reading flow hoạt động end-to-end
- [ ] Collection progress tính đúng
- [ ] UserInventory update đúng sau RNG
### Mobile (React Native CLI)
- [ ] APK build thành công (`cd android && ./gradlew assembleRelease`)
- [ ] NFC scan hoạt động trên thiết bị thật
- [ ] API base URL trỏ đúng production
### Azure
- [ ] BE deploy thành công (Azure App Service running)
- [ ] FE deploy thành công (Azure Static Web Apps live)
- [ ] Azure SQL database connected
- [ ] Environment variables set đúng trong Azure Portal
Semantic Versioning: MAJOR.MINOR.PATCH
PATCH (0.0.X) — Bug fixesMINOR (0.X.0) — New features, backward compatibleMAJOR (X.0.0) — Breaking changesFiles cần cập nhật:
# Backend
project_src/BE/PixelMageEcomerceProject/pom.xml
→ <version>X.Y.Z</version>
# Frontend
project_src/FE/exe-real/package.json
→ "version": "X.Y.Z"
# Mobile (React Native CLI)
project_src/MO/PixelMageRN/package.json
→ "version": "X.Y.Z"
project_src/MO/PixelMageRN/android/app/build.gradle
→ versionCode + versionName
project_src/MO/PixelMageRN/ios/PixelMageRN/Info.plist
→ CFBundleShortVersionString + CFBundleVersion
Format CHANGELOG.md:
# Changelog
## [X.Y.Z] — YYYY-MM-DD
### ✨ Features
- [BE] Thêm DivineHelper entity + Tarot reading API
- [FE] UI màn hình đọc bài Celtic Cross
- [MO] NFC card scanning + linking flow
### 🐛 Bug Fixes
- [BE] Fix CORS issue cho AccountController
- [FE] Fix hydration mismatch trên profile page
### 🔧 Improvements
- [BE] Refactor AuthService tách thành interface + impl
- [ALL] Cập nhật dependencies
# Xem .agents/workflows/deploy.md
1. Smoke test production URL
2. Check Azure App Service logs
3. Check Azure SQL connection
4. Test NFC scan trên thiết bị thật (Android)
5. Notify team/stakeholders