Repository navigation
Publish @mailgun/cli from GitHub Releases - #5
Merged
Merged
Conversation
Mirror mailgun-mcp-server: CI on main/PRs, and npm publish with provenance when a v* GitHub Release is published.
djbriane
force-pushed
the
chore/npm-publish-workflow
branch
from
September 15, 2026 18:58
a5b53d2 to
09c33e0
Compare
node --test only accepts glob patterns on Node 21 and newer, so the quoted pattern was read as a literal path. Pass the compiled test files explicitly instead.
Assume the package is published so install matches the MCP server README: npm, npx, and source build under Development.
Point readers to GitHub issues for feedback and feature requests while the surface is still settling.
mattleong
approved these changes
Sep 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mailgun-mcp-serverpublish.yml: a published GitHub Release whose tag isvpluspackage.jsonversion runs test, thennpm publish --access public --provenancevia OIDC trusted publishing.mailgun-mcp-serverci.yml test matrix (Node 20/22/24). Lint is omitted because this repo has nolintscript yet.prepublishOnlybuild,.nvmrc24.15.0,repository/homepage/bugs. Build is not a separate workflow step;npm publishrunsprepublishOnly, matching MCP.testscript so it runs on Node 20.node --testonly accepts glob patterns as of Node 21.0.0, so"dist-test/**/*.test.js"was read as a literal path (Could not find .../dist-test/**/*.test.js). The compiled test files are now passed explicitly. This bug predates this PR; the new CI matrix is simply the first thing to exercise Node 20, whichenginesand the README both claim support for.@mailgun/cliis on npm (npm install -g,npx, version badge), matching the MCP server install story. Source build stays under Development.npm team (one-time)
This PR does not publish. After merge, add an npm Trusted Publisher on
@mailgun/cli:mailgunmailgun-clipublish.ymlThen bump
versiononmainand create GitHub ReleasevX.Y.Z.Test plan
NPM_TOKEN/NODE_AUTH_TOKEN@mailgun/cli→mailgun/mailgun-cli/publish.ymlpackage.json(v0.2.0or next)