Skip to content

ci: add workflow_run trigger to publish-packages.yml#36

Merged
therecluse26 merged 1 commit into
mainfrom
feature/ci-hardening
May 16, 2026
Merged

ci: add workflow_run trigger to publish-packages.yml#36
therecluse26 merged 1 commit into
mainfrom
feature/ci-hardening

Conversation

@therecluse26
Copy link
Copy Markdown
Collaborator

Fixes publish-packages.yml never triggering after release.yml creates a GitHub Release via GITHUB_TOKEN (GitHub intentionally suppresses the release:published event in that case).

  • Add workflow_run trigger firing when the "Release" workflow completes
  • Update both job if: conditions to handle workflow_run, release, and workflow_dispatch event sources
  • Add prerelease check step to publish-crates-io with skip output so all costly steps are skipped for prerelease tags
  • Update Get release tag step in publish-npm to extract tag from head_branch when triggered by workflow_run, with prerelease guard
  • Retain release:published trigger for manually-created releases
  • All action SHAs remain pinned (no REF-148 regressions)

Fixes publish-packages.yml never triggering after release.yml creates a
GitHub Release via GITHUB_TOKEN (GitHub intentionally suppresses the
release:published event in that case).

- Add workflow_run trigger firing when the "Release" workflow completes
- Update both job if: conditions to handle workflow_run, release, and
  workflow_dispatch event sources
- Add prerelease check step to publish-crates-io with skip output so
  all costly steps are skipped for prerelease tags
- Update Get release tag step in publish-npm to extract tag from
  head_branch when triggered by workflow_run, with prerelease guard
- Retain release:published trigger for manually-created releases
- All action SHAs remain pinned (no REF-148 regressions)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
@therecluse26 therecluse26 merged commit f552415 into main May 16, 2026
4 of 7 checks 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