Skip to content

Conversation

@ichoosetoaccept
Copy link
Member

@ichoosetoaccept ichoosetoaccept commented Dec 30, 2025

Summary

Fixes NPM Publish workflow not triggering automatically after semantic-release creates a release.

Root Cause

Releases created with GITHUB_TOKEN do NOT emit release events to trigger other workflows. This is a GitHub security feature to prevent infinite loops.

From semantic-release/github docs:

"However releases done with this token will NOT trigger release events to start other workflows."

Solution

Changed NPM Publish trigger from release: published to workflow_run (triggers after Release workflow completes successfully).

Additional Fixes

  • prek hooks installed - Pre-commit hooks now run on gt create
  • Trailing whitespace fixed in test files
  • End-of-file fixed in test files
  • typos config - Exclude CHANGELOG.md (contains git hashes that look like typos)
  • .typos.toml added for typos configuration

Verification

  • All pre-commit hooks pass ✅
  • Build passes ✅
  • knip clean ✅

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ichoosetoaccept ichoosetoaccept marked this pull request as ready for review December 30, 2025 10:12
Copy link
Member Author

ichoosetoaccept commented Dec 30, 2025

Merge activity

  • Dec 30, 10:12 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 30, 10:12 AM UTC: @ichoosetoaccept merged this pull request with Graphite.

@ichoosetoaccept ichoosetoaccept merged commit b544db2 into main Dec 30, 2025
3 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 30, 2025
## [0.3.2](v0.3.1...v0.3.2) (2025-12-30)

### Bug Fixes

* use workflow_run trigger for npm-publish (GITHUB_TOKEN releases don't emit events) ([#39](#39)) ([b544db2](b544db2))
@github-actions
Copy link

🎉 This PR is included in version 0.3.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants