Skip to content

Notify publish to Slack via centralized reusable workflow#14

Merged
juanhapes merged 1 commit into
masterfrom
feature/slack-notify-via-reusable-workflow
May 27, 2026
Merged

Notify publish to Slack via centralized reusable workflow#14
juanhapes merged 1 commit into
masterfrom
feature/slack-notify-via-reusable-workflow

Conversation

@juanhapes

Copy link
Copy Markdown
Member

Qué

Migra la notificación de publish a Slack al reusable workflow centralizado `janis-commerce/.github/.github/workflows/slack-notify-publish.yml`.

  • Elimina `.postpublish.sh`.
  • Elimina el script npm `postpublish`.
  • Agrega job `notify-slack` en `npm-publish.yml` que llama al reusable (`username: Log`).

Por qué

La notificación de Slack de este package estaba rota: tenía el `.postpublish.sh` y el hook npm, pero el workflow nunca mapeaba `SLACK_WEBHOOK`, así que el hook hacía `exit` sin notificar nunca. Ahora el secret se pasa explícito al reusable workflow.

⚠️ Orden de merge

Depende de janis-commerce/.github#1 (el reusable workflow). Mergear ese PR primero — si no, el job `notify-slack` falla con "workflow not found" en el próximo release.

🤖 Generated with Claude Code

Removes per-repo .postpublish.sh and npm postpublish hook in favor of the
janis-commerce/.github reusable workflow. Fixes the broken Slack notification
(SLACK_WEBHOOK was never wired into the publish workflow).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@juanhapes juanhapes merged commit 5b9c4ed into master May 27, 2026
1 check passed
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