Skip to content

ci: publish to GitHub Packages on release#4

Merged
treezio merged 3 commits into
mainfrom
feat/npm-publish
May 4, 2026
Merged

ci: publish to GitHub Packages on release#4
treezio merged 3 commits into
mainfrom
feat/npm-publish

Conversation

@treezio

@treezio treezio commented May 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a GitHub Actions workflow that publishes the package to GitHub Packages on release
  • Uses the built-in GITHUB_TOKEN — no external secrets required
  • Updates README with GitHub Packages install instructions and npx-based MCP client configs

Release flow

  1. Push a version tag (e.g. git tag v1.0.2 && git push --tags) → release.yml creates a draft GitHub Release
  2. Review and publish the draft → npm-publish.yml fires and ships to GitHub Packages

Local install (once published)

Add to ~/.npmrc:

@drifthoundhq:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=YOUR_GITHUB_PAT

Then use in Claude Code / Claude Desktop config:

{
  "mcpServers": {
    "drifthound": {
      "command": "npx",
      "args": ["-y", "@drifthoundhq/mcp-server"],
      "env": {
        "DRIFTHOUND_API_URL": "https://your-drifthound-instance",
        "DRIFTHOUND_API_TOKEN": "your-token"
      }
    }
  }
}

Note: GitHub Packages requires a GitHub PAT with read:packages scope even for public packages.

🤖 Generated with Claude Code

treezio and others added 2 commits May 4, 2026 14:51
Publishes the package to npm when a GitHub Release is published,
enabling `npx -y @drifthoundhq/mcp-server` for local installs.
Requires NPM_TOKEN secret in repository settings.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Switches registry to https://npm.pkg.github.com and uses the
built-in GITHUB_TOKEN — no external secret required.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@treezio treezio changed the title ci: publish to npm on release ci: publish to GitHub Packages on release May 4, 2026
Replaces local build paths with npx-based install using GitHub
Packages, and documents the required .npmrc PAT setup.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@treezio treezio merged commit 45f4069 into main May 4, 2026
1 check 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