Skip to content

publish: move constitution-cli off GitHub Packages to public npm#5

Merged
chinmaygit merged 1 commit into
mainfrom
agitated-payne-2a54d3
Jul 5, 2026
Merged

publish: move constitution-cli off GitHub Packages to public npm#5
chinmaygit merged 1 commit into
mainfrom
agitated-payne-2a54d3

Conversation

@chinmaygit

@chinmaygit chinmaygit commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Switches constitution-cli from GitHub Packages to the public npm registry, unscoped (constitution-cli instead of @chinmaygit/constitution-cli) — GitHub Packages requires an auth token to install even public packages, which blocked non-authenticated installs.
  • Updates .github/workflows/publish.yml to publish via NODE_AUTH_TOKEN: secrets.NPM_TOKEN against registry.npmjs.org, and drops the now-unneeded packages: write permission.
  • Updates install docs (root README, cli/README.md, docs/quickstart.md, cli/AGENTS.md) to recommend npm install --save-dev constitution-cli + npx constitution ... over a global install, keeping the engine version pinned per consuming repo.

Test plan

  • npm run build and npm test pass locally in cli/ under the renamed package (23/23 tests)
  • constitution audit / constitution firewall clean (pre-commit hook)
  • NPM_TOKEN repo secret is set (confirmed by user) — merge will trigger the real npm publish and the post-publish smoke test in CI

🤖 Generated with Claude Code

…coped

GitHub Packages requires an auth token to install even public packages —
a platform limitation, not a visibility choice. Publishing to npmjs.org
as unscoped `constitution-cli` lets anyone `npm install` with no token.
Also updates install docs to recommend a local devDependency + npx over
a global install, so the engine version stays pinned per-repo.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@chinmaygit chinmaygit merged commit fae3aad into main Jul 5, 2026
2 checks passed
@chinmaygit chinmaygit deleted the agitated-payne-2a54d3 branch July 5, 2026 13:45
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