From f9d89922653319d38554265ebc3ec56367892e0c Mon Sep 17 00:00:00 2001 From: root Date: Fri, 4 Dec 2026 05:58:00 +0000 Subject: [PATCH] README: say that the GitHub install takes main, and add a tagged install (#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. --- CHANGELOG.md | 6 ++++++ README.md | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 63a97e8..506361f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to the `indianopinion` npm package. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow [Semantic Versioning](https://semver.org/). +## [Unreleased] + +### Fixed + +- README: `npm i -g github:IndianOpinion/cli` installs the `main` branch, not "the newest release" as the comment said; a `#v0.2.2` line installs the tagged release. The registry package is still unpublished (#1). + ## [0.2.2] - 2026-10-22 ### Fixed diff --git a/README.md b/README.md index 8d01474..42df7c6 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,16 @@ The package is not on the npm registry yet (the first publish is pending), so in repository or from the site: ```sh -npm i -g github:IndianOpinion/cli # this repository, the newest release +npm i -g github:IndianOpinion/cli#v0.2.2 # this repository, a release tag +npm i -g github:IndianOpinion/cli # this repository, the main branch npm i -g https://indianopinion.org/agents/cli/latest.tgz # the copy the site serves npx --yes github:IndianOpinion/cli briefs --q "monsoon" # run once without installing ``` +`github:IndianOpinion/cli` without a tag installs whatever is on `main`, which can be ahead of the +newest release; add `#v` (see [Releases](https://github.com/IndianOpinion/cli/releases)) +to install a tagged release. + Check a site download against `https://indianopinion.org/agents/cli/SHA256SUMS` or `latest.json` (`{version, url, sha256}`). After the first npm publish, `npm i -g indianopinion` and `npx --yes indianopinion` work too, and registry releases carry npm provenance that links each version @@ -140,7 +145,8 @@ One-time setup (an npm owner of the package, on npmjs.com): Each release after that: 1. Bump `version` in `package.json`, `VERSION` in `bin/indianopinion.mjs` and `IO_SH_VERSION` in - `io.sh` (the test workflow fails if they differ), and add a `CHANGELOG.md` entry. + `io.sh` (the test workflow fails if they differ), add a `CHANGELOG.md` entry, and update the + `github:IndianOpinion/cli#v` install line at the top of this README. 2. Merge to `main`, then create a GitHub release with the tag `v`. 3. The `publish` workflow checks that the tag matches the version, runs the tests and publishes with provenance.