Skip to content

Release: CI/CD Improvements v2 - #130

Merged
JaegerCaiser merged 24 commits into
mainfrom
release/ci-cd-improvements-v2
Nov 7, 2025
Merged

Release: CI/CD Improvements v2#130
JaegerCaiser merged 24 commits into
mainfrom
release/ci-cd-improvements-v2

Conversation

@JaegerCaiser

@JaegerCaiser JaegerCaiser commented Nov 7, 2025

Copy link
Copy Markdown
Owner

Release incluindo todas as melhorias de CI/CD da develop.

🚀 Melhorias de CI/CD Incluídas

Arquitetura Condicional de Deploy

  • Refatoração completa dos workflows para deploy condicional
  • Otimização de custos: Deploy do Vercel só quando há mudanças reais no código
  • Status checks consistentes: Jobs sempre rodam (sempre verdes) mas pulam steps internos
  • Arquitetura uniforme: Mesmo padrão aplicado nos workflows reutilizáveis

Correções Técnicas

  • Renomeação de jobs: Prevenção de conflitos em status checks
  • Separação de responsabilidades: Workflows focados em tarefas específicas
  • Correção de links: Template de comentário da PR corrigido

Documentação

  • Posts do blog: Saga CI/CD completa
  • Instruções atualizadas: React 19 e CI/CD
  • Guias de processo: Hotfix e desenvolvimento

🔧 Arquivos Alterados

  • .github/workflows/ - Refatoração completa dos workflows
  • .github/copilot-instructions.md - Atualização das diretrizes
  • src/content/blog/ - Novos posts sobre CI/CD

📊 Impacto

  • Performance: Redução significativa no tempo de execução de workflows
  • Custos: Otimização de recursos do Vercel
  • Manutenibilidade: Código mais limpo e bem documentado

🔄 Processo

Esta release segue o Git Flow correto:

  1. Criada da branch develop atual
  2. Testada via PR antes do merge
  3. Semantic-release será executado após fechar esta PR (não mergear)

Preparado para semantic-release automático

JaegerCaiser and others added 20 commits November 5, 2025 23:50
🔄 [Auto-Sync] Merge main back into develop
- Rename jobs with unique prefixes to avoid confusion when multiple workflows run
- Preview jobs: 'Preview - Test & Lint', 'Preview - Deploy to Vercel'
- Production jobs: 'Production - Test & Lint', 'Production - Deploy to Vercel'
- Develop jobs: 'Develop - Test & Lint', 'Develop - Deploy to Vercel'
- This resolves duplicate job names in PR status checks

Note: Rulesets need manual update via web interface to match new job names
- Rename jobs with unique prefixes to avoid confusion when multiple workflows run
- Preview jobs: 'Preview - Test & Lint', 'Preview - Deploy to Vercel'
- Production jobs: 'Production - Test & Lint', 'Production - Deploy to Vercel'
- Develop jobs: 'Develop - Test & Lint', 'Develop - Deploy to Vercel'
- This resolves duplicate job names in PR status checks

Note: Rulesets need manual update via web interface to match new job names
- Move deploy control from caller to reusable-deploy-vercel.yml
- Add paths-filter back to reusable-deploy-vercel.yml for internal control
- Remove job-level condition from preview.yml deploy-preview
- Both jobs now always run (green status checks) but skip steps when no code changes
- Optimizes Vercel costs: deploy only when src/public/package files change

Before: deploy-preview job skipped entirely when no code changes
After: deploy-preview job runs but skips internal steps, maintaining status checks
…ture

Add the final chapter about implementing conditional deploy logic in reusable workflows:
- Status checks consistency problem
- Moving control from job-level to step-level conditions
- Uniform architecture across reusable workflows
- Cost optimization benefits
- Complete before/after comparison with code snippets
- Move deploy control from caller to reusable-deploy-vercel.yml
- Add paths-filter back to reusable-deploy-vercel.yml for internal control
- Remove job-level condition from preview.yml deploy-preview
- Both jobs now always run (green status checks) but skip steps when no code changes
- Optimizes Vercel costs: deploy only when src/public/package files change

Before: deploy-preview job skipped entirely when no code changes
After: deploy-preview job runs but skips internal steps, maintaining status checks
Fix malformed preview URL in the PR comment template:
- Remove incorrect 'dpreview.com' prefix
- Restore proper deployment URL variable reference
…inciple

Docs: Add 'Verify, Then Act' Principle
…d-saga"

This reverts commit 1933a06, reversing
changes made to b983a4b.
@github-actions

github-actions Bot commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

🚀 Vercel Preview Deployment

A pré-visualização para este PR foi atualizada.

Recurso Link
🔗 URL de Preview URL de Preview
📜 Logs do Deploy Ver logs da Action

Commit: 4b6cbb754620509ea4b16f611487c5064b3390f3

- Added descriptive name 'Validate Release Branch for Main' to the job
- Improves workflow logging and status check visibility
- Changed back to named link format: [URL de Preview](url)
- Removed the incorrect dpreview.com domain reference
- Changed 'Preview -' and 'Production -' prefixes to 'CI -' for consistency
- Updated job names in preview.yml and production.yml
- Maintains clear identification while improving naming consistency
- Removed push trigger for release/** branches from preview.yml
- Preview workflow should only run on PRs, not on direct pushes to release branches
- Maintains proper separation between preview (PR) and release (push) workflows
@JaegerCaiser
JaegerCaiser merged commit fbdafaf into main Nov 7, 2025
6 checks passed
@JaegerCaiser
JaegerCaiser deleted the release/ci-cd-improvements-v2 branch November 7, 2025 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant