Skip to content

fix: use workflow_run trigger for npm-publish (GITHUB_TOKEN releases don't emit events)#39

Merged
ichoosetoaccept merged 1 commit intomainfrom
12-30-fix_use_workflow_run_trigger_for_npm-publish_github_token_releases_don_t_emit_events_
Dec 30, 2025
Merged

fix: use workflow_run trigger for npm-publish (GITHUB_TOKEN releases don't emit events)#39
ichoosetoaccept merged 1 commit intomainfrom
12-30-fix_use_workflow_run_trigger_for_npm-publish_github_token_releases_don_t_emit_events_

Conversation

@ichoosetoaccept
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

🎉 This PR is included in version 0.3.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Apr 1, 2026
# [2.1.0](v2.0.19...v2.1.0) (2026-04-01)

### Bug Fixes

* add knip config, pre-commit hook, fix Zod compatibility, and remove unused code ([#38](#38)) ([a34d956](a34d956))
* change default HOST from 0.0.0.0 to 127.0.0.1 ([zereight#289](https://github.com/detailobsessed/efficient-gitlab-mcp/issues/289)) ([4225366](4225366))
* **ci:** add Node.js 22 setup for semantic-release ([#13](#13)) ([941a64b](941a64b))
* **ci:** add permissions and secrets inherit for reusable workflow ([#15](#15)) ([2a41bfc](2a41bfc))
* **ci:** checkout release tag in npm-publish workflow ([#21](#21)) ([8094cd1](8094cd1))
* **ci:** remove persist-credentials false for semantic-release ([#14](#14)) ([e9d9db1](e9d9db1))
* correct bin format in package.json ([#26](#26)) ([91a1e98](91a1e98))
* create_or_update_file now properly updates existing files ([#2](#2)) ([6f97958](6f97958))
* use Node.js 24 for npm OIDC trusted publishing ([#25](#25)) ([5bcb716](5bcb716))
* use ubuntu-latest for npm publish (OIDC requires GitHub-hosted runners) ([#24](#24)) ([28155bc](28155bc))
* use workflow_run trigger for npm-publish (GITHUB_TOKEN releases don't emit events) ([#39](#39)) ([b544db2](b544db2))

### Features

* add 405 response for GET /mcp endpoint when STREAMABLE_HTTP is enabled. https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#listening-for-messages-from-the-server ([zereight#295](https://github.com/detailobsessed/efficient-gitlab-mcp/issues/295)) ([6a03064](6a03064))
* add GitLab search tools (global, project, group) ([#6](#6)) ([3e2e279](3e2e279))
* add GitLab tool modules with 52 tools and comprehensive tests ([#1](#1)) ([14bc851](14bc851))
* add HTTP transport security features ([#9](#9)) ([0eed0d6](0eed0d6))
* add MCP protocol logging for agent observability ([#10](#10)) ([85c4c50](85c4c50))
* add MCP Registry support with mcpName and server.json ([#30](#30)) ([19dd31e](19dd31e))
* add npm version badge to README ([#23](#23)) ([1c2cc84](1c2cc84))
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.

1 participant