@lobehub/cli 0.0.77 → 0.0.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  LobeHub command-line interface.
4
4
 
5
+ ## Release to npm
6
+
7
+ The `Release CLI` GitHub Actions workflow publishes stable versions to npm's
8
+ `latest` tag from `canary`. To release, bump `apps/cli/package.json` in a PR:
9
+
10
+ ```bash
11
+ cd apps/cli
12
+ npm version patch --no-git-tag-version
13
+ bun run man:generate
14
+ ```
15
+
16
+ Commit the version and generated manual, complete the checks and any product
17
+ acceptance required by the change, then merge the PR into `canary`. CI checks
18
+ the registry, tests the CLI bundle, runs the complete `prepublishOnly` build
19
+ (including the offline report), smoke-checks it, and publishes with provenance.
20
+ The workflow can also be dispatched manually on `canary` to retry a failed run.
21
+ Already published versions are skipped; prereleases and versions older than
22
+ `latest` are rejected. Registry errors stop the run instead of assuming a
23
+ version is unpublished. CI does not change versions or commit back to the repo.
24
+
25
+ Publishing uses the repository's `NPM_TOKEN` secret, as the SDK release does.
26
+ It must have publish permission for `@lobehub/cli` and support unattended
27
+ publishing under the package's npm authentication policy. PR previews continue
28
+ to publish separately to `pkg.pr.new`.
29
+
5
30
  ## Update a connected device
6
31
 
7
32
  ```bash