From 59520a948f953da90aaf37196bd968a67e149616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20L=C3=BCder?= Date: Thu, 9 Jul 2026 13:58:21 -0500 Subject: [PATCH] =?UTF-8?q?fix(cli):=20republicar=20quando=20templates/=20?= =?UTF-8?q?mudam=20na=20detec=C3=A7=C3=A3o=20de=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/_release.yml | 5 ++++- templates/github/workflows/_release.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index cb39790..1b84728 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -71,8 +71,11 @@ jobs: ); filenames = pages.flatMap(p => (p.files ?? []).map(f => f.filename)); } + // `templates/**` conta como mudança de pacote: o cli empacota o + // diretório templates no build, então editar um template precisa + // republicar o cli (senão `precisa sync` distribui o template antigo). const packageChanged = filenames.some( - f => f.startsWith('packages/') || f === 'package.json' + f => f.startsWith('packages/') || f.startsWith('templates/') || f === 'package.json' ); core.setOutput('packages_changed', packageChanged ? 'true' : 'false'); core.info(`inspected ${filenames.length} files, packages_changed=${packageChanged}`); diff --git a/templates/github/workflows/_release.yml b/templates/github/workflows/_release.yml index b16622a..27f1b95 100644 --- a/templates/github/workflows/_release.yml +++ b/templates/github/workflows/_release.yml @@ -71,8 +71,11 @@ jobs: ); filenames = pages.flatMap(p => (p.files ?? []).map(f => f.filename)); } + // `templates/**` conta como mudança de pacote: o cli empacota o + // diretório templates no build, então editar um template precisa + // republicar o cli (senão `precisa sync` distribui o template antigo). const packageChanged = filenames.some( - f => f.startsWith('packages/') || f === 'package.json' + f => f.startsWith('packages/') || f.startsWith('templates/') || f === 'package.json' ); core.setOutput('packages_changed', packageChanged ? 'true' : 'false'); core.info(`inspected ${filenames.length} files, packages_changed=${packageChanged}`);