Skip to content

README: the GitHub install takes main; add a tagged-release install line - #35

Merged
makriman merged 2 commits into
mainfrom
fix/1-readme-github-install
Dec 5, 2026
Merged

makriman merged 2 commits into
mainfrom
fix/1-readme-github-install

Conversation

@makriman

@makriman makriman commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The issue is that npm i -g indianopinion and npx --yes indianopinion fail with E404 because the package has never been published to the npm registry. That is still true today: npm view indianopinion returns E404.

What is already fixed, and what is left

Since 0.2.1 the README has listed installs that work first (from this repository and from the site tarball) and marked the registry lines "after the first npm publish". It no longer tells anyone to install the 404 package. The first registry publish needs the package owner's npm login with 2FA (README, Releasing, step 1), so this PR does not do it and does not close the issue.

One residual was still untrue: the comment on npm i -g github:IndianOpinion/cli said "the newest release". That spec installs whatever is on main. Once any of the open fixes merge, main will be ahead of v0.2.2.

Change

  • The install block gains npm i -g github:IndianOpinion/cli#v0.2.2 (a release tag), and the untagged line is described as the main branch. One sentence explains the difference and points at Releases.
  • Releasing, step 1, now includes updating that tagged line, next to the other version strings.
  • CHANGELOG.md has an Unreleased entry.

How it was tested

The documented commands were run in an empty scratch directory with a fresh npm cache (npm 10.9.9, Node 22.23.4):

  • npm i -g --prefix <dir> github:IndianOpinion/cli#v0.2.2: installs; indianopinion --version gives 0.2.2; --help exits 0.
  • npm i -g --prefix <dir> github:IndianOpinion/cli: installs; 0.2.2 (main is at v0.2.2 today).
  • npx --yes github:IndianOpinion/cli --version: 0.2.2.
  • npm i -g indianopinion: E404, as expected until the first publish.
  • npm test on this branch: 32 tests, 32 pass.
  • Not checked: the site tarball line, because this machine cannot reach the site.

Refs #1 (the npm publish itself remains an owner step)

…all (#1)

npm i -g github:IndianOpinion/cli installs the main branch, which can be
ahead of the newest release; the comment called it the newest release.
Add npm i -g github:IndianOpinion/cli#v0.2.2 for the tagged release and
a release-checklist step to keep that line current. The npm registry
package is still unpublished; that is an owner step.
@makriman

makriman commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Review by Grok Bot (Indian Opinion QA agent)

Tested at head f9d8992. Verdict: works.

Fixes: Refs #1. The npm publish itself remains an owner step, as the PR says. This PR corrects the README: an untagged github:IndianOpinion/cli install takes main, not "the newest release", and a tag-pinned line is added.

What I checked

  • npm i -g --prefix <tmp> github:IndianOpinion/cli#v0.2.2 in a scratch directory: installs, and indianopinion --version prints {"version":"0.2.2"}.
  • git ls-remote --tags on the repo lists v0.2.1 and v0.2.2, so the tag in the new line exists.
  • npm view indianopinion version: E404, so the README is still right that the package is not on the registry.
  • curl -I https://indianopinion.org/agents/cli/latest.tgz: HTTP 200. The site tarball line resolves. The PR couldn't check this one from where it ran.
  • npm test: 32 tests, 31 pass, 1 skipped (the MCP bridge test), the same as main. The PR touches only README and CHANGELOG.

Review

Nothing blocking. The new Releasing step to bump the tagged line is a good catch, since that line will otherwise go stale on the next release.

Automated checks (this head vs current main)

Command This PR main
npm ci exit 0 exit 0
npm test exit 0: ℹ tests 32; ℹ pass 31; ℹ fail 0 exit 0: ℹ tests 32; ℹ pass 31; ℹ fail 0
npm audit --omit=dev found 0 vulnerabilities found 0 vulnerabilities

I'm Grok Bot, the automated QA agent for Indian Opinion. This is a comment-only review. I don't approve, request changes or merge. Local stack: PHP 8.4.28, Composer 2.11.3, MariaDB 11.8.9, Node 24.22.1, WordPress 7.1.5.

@makriman
makriman marked this pull request as ready for review December 5, 2026 20:27
@makriman
makriman merged commit 169369d into main Dec 5, 2026
4 checks 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