privatenumber/git-publish
privatenumber/git-publish has 71 GitHub stars and 3 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-14 10:20 UTC. Last push 2026-11-09.
Crecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- Recopilando historial
- in 15 days
- Recopilando historial
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
Acerca de
☁️ Publish your npm package to a GitHub repository branch
Herramientas de desarrolloREADME.md
Originalgit-publish
Publish your npm package to a Git branch, then install it anywhere with one command. Test unreleased changes in a real project without publishing to npm.
Quick start
In your package's repository:
npx git-publish
git-publish packs the package like npm publish does, commits the packed files to the branch npm/<current branch>, pushes it, and prints the install command:
npm i 'owner/repo#npm/main'
Run that command in any project that should use the package. To skip npx, install git-publish globally with npm install -g git-publish.
What you can do
Try a fix in your app before it's released. Publish your branch, install it in the app, and iterate. Publishing again adds a commit to the same branch.
Share a fork's changes when you don't have publish access to the package:
npx git-publish --remote fork
Publish a monorepo package with its workspace dependencies. git-publish publishes the workspace packages it needs too, and prints one command that installs them together:
cd packages/app
npx git-publish
Publish a whole monorepo by running git-publish at the workspace root, or select packages by name, path, or glob:
npx git-publish @acme/core './packages/plugins/*'
Post previews from CI. --json result.json writes every published branch, commit, and install specifier, for example to comment on a pull request.
Install from private repositories. Installs work wherever Git can access the repository, such as a machine set up with gh auth setup-git.
Why not npm publish or npm link?
npm publishneeds a version bump for every throwaway build, can't easily be undone under npm's unpublish policy, and risks shipping test code as a release.npm linkskips lifecycle scripts, links the whole project instead of the publishable files, doesn't install dependencies, causes symlink issues, and doesn't work in CI or remote environments.git-publishpublishes exactly whatnpm publishwould, with no versioning, to a branch you can browse on GitHub and delete when you're done.
Agent skill
git-publish ships an agent skill that teaches coding agents to publish with git-publish and install published packages. In a project that depends on git-publish, pnpm agent skills can link it after approval. With npx, pnpm dlx, or a global install, use the skills command:
npx git-publish skills --install ~/.agents/skills
Documentation
- CLI: flags, branch names and templates,
--fresh, JSON output, and theskillscommand. - Monorepos: which packages a selection publishes, how internal dependencies are resolved, and how to prepare packages.
- Installing: install commands, package manager settings, updating, and private repositories.
- How it works: what
git-publishchanges in the published package, build steps, and commit history.

