worldmonitor npm CLI from cli/. CLI releases are intentionally independent from desktop app releases: a cli-vX.Y.Z Git tag triggers .github/workflows/publish-cli.yml.
The Python, Ruby, and Go SDKs release the same way with their own tags (py-v*, gem-v*, sdk/go/v*) — see Official SDKs → Releasing.
Prerequisites
- The
worldmonitorpackage already exists on npm. - npm Trusted Publishing is configured for this repository and
.github/workflows/publish-cli.yml. - The workflow keeps
permissions.id-token: writeso npm can mint the short-lived OIDC credential and attach provenance.
NPM_TOKEN repository secret is required for the current workflow. If Trusted Publishing is not configured, the publish step fails authentication until an npm package owner adds the GitHub Actions trusted publisher in npm package settings.
Release Steps
-
Update
cli/package.jsonsoversionis the exact version you intend to publish. - Commit the version bump, and include any CLI docs or changelog updates that should ship with that version.
-
After the release commit is on
mainor the intended release ref, create a tag namedcli-vX.Y.Z, whereX.Y.Zexactly matchescli/package.json: -
Push the tag:
-
Watch the
Publish CLI to npmworkflow. It runs the CLI tests, verifies the tag version matchescli/package.json, and publishes with provenance.
cli-v0.1.3 only publishes when cli/package.json also says "version": "0.1.3".
Dry Run
Use the manualworkflow_dispatch trigger with dry_run: true when you want to validate the package tarball without publishing. The workflow runs from cli/ and executes npm pack --dry-run.
Use dry_run: false only when you intentionally want the manual workflow path to publish. Tag-triggered releases remain the normal path because the tag name is the release contract.
Failure Checklist
After the workflow succeeds, confirm the new version appears on npm and that
npx worldmonitor --version resolves to the published version.