fix(cli): detectar mudanças em templates/ para republicar o cli#39
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problema
O cli (
@precisa-saude/cli) empacotatemplates/no build (copy-templates.mjs→dist/templates/), eprecisa syncdistribui esses templates aos repos. Mas a detecção de release em_release.ymlsó considera mudança de pacote quando um arquivo empackages/**oupackage.jsonmuda:Resultado: o PR #38 (bump de actions para Node 24 nos templates) não republicou o cli — o release rodou mas
packages_changed=false, então o publish foi pulado. O cli publicado (1.11.0) ainda empacota os templates antigos (node20). Umprecisa syncfuturo reverteria os workflows dos repos para node20.Correção
Inclui
templates/**na detecção, em ambos os_release.yml(o próprio do tooling e o template distribuído). Como este PR editatemplates/github/workflows/_release.yml(uma mudança emtemplates/), o merge dispara o release sob a nova lógica → republica o cli já com os templates node24 (backfill do #38). Correção e backfill no mesmo PR.