Skip to content

fix: use PAT for release-please to trigger publish workflow#86

Merged
rogeriochaves merged 1 commit intomainfrom
fix/release-please-pat
Feb 22, 2026
Merged

fix: use PAT for release-please to trigger publish workflow#86
rogeriochaves merged 1 commit intomainfrom
fix/release-please-pat

Conversation

@rogeriochaves
Copy link
Collaborator

@rogeriochaves rogeriochaves commented Feb 22, 2026

Summary

  • Use RELEASE_PLEASE_TOKEN PAT instead of default GITHUB_TOKEN for release-please, so that created GitHub Releases trigger the release: published event for the publish workflow
  • Remove the trigger-publish and debug-outputs workaround jobs from release-please.yml
  • Remove workflow_call trigger from publish.yml (no longer needed)

This is the same fix applied to the scenario repo. The default GITHUB_TOKEN is a GitHub limitation — events created by it don't trigger other workflows.

Prerequisites

  • Ensure RELEASE_PLEASE_TOKEN secret is set in the repo settings (a GitHub PAT with contents: write and pull-requests: write permissions)

Test plan

  • Merge this PR, then merge the release-please PR it creates
  • Verify the publish workflow triggers automatically from the release event

The default GITHUB_TOKEN does not trigger downstream workflows when
release-please creates a GitHub Release. Use a PAT (RELEASE_PLEASE_TOKEN)
so the release:published event fires and triggers the publish workflow
naturally. Also remove the now-unnecessary workflow_call workaround.
@rogeriochaves rogeriochaves merged commit 130fdf1 into main Feb 22, 2026
5 checks passed
@rogeriochaves rogeriochaves deleted the fix/release-please-pat branch February 22, 2026 13:10
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