@@ -21,10 +21,11 @@ Nothing needs to be published to npm. `$HOME` expands to your home directory.
2121
2222## Install from a .tgz package
2323
24- 1 . Download/copy the archive to the machine running OpenCode 2 and install it:
24+ 1 . Download/copy the archive to the machine running OpenCode 2 and install it
25+ (replace ` VERSION ` with the downloaded version):
2526
2627 ``` bash
27- npm install --global --prefix " $HOME /.local" " $HOME /Downloads/opencode2-automation-0.5.0-beta.5 .tgz"
28+ npm install --global --prefix " $HOME /.local" " $HOME /Downloads/opencode2-automation-VERSION .tgz"
2829 ```
2930
3031 ` postinstall ` registers both the plugin and TUI automatically. No ` sudo ` ,
@@ -274,7 +275,30 @@ npm run check
274275npm pack
275276```
276277
277- ` npm run check ` runs type checking, tests, and a build. ` npm pack ` creates
278- ` opencode2-automation-0.5.0-beta.5.tgz ` with compiled code and the installer;
278+ Use Node 22.13+ or 24+ for development. ` npm run check ` runs ESLint, type checking,
279+ tests, and a build. ` npm run package:check ` additionally packs and verifies a
280+ global install in a temporary directory, including ` postinstall ` and the CLI.
281+ ` npm pack ` creates
282+ ` opencode2-automation-<version>.tgz ` using the version in ` package.json ` , with compiled code and the installer;
279283copy it to another machine and follow the ` .tgz ` instructions above.
280284` private: true ` prevents accidental npm publication.
285+
286+ ## GitHub Actions and releases
287+
288+ - ** Pull requests:** CI runs ESLint, type checking, unit tests, a build, and a
289+ package installation check on Node 22 and 24. Pushes to ` main ` /` master ` also run CI.
290+ - ** Releases:** push a SemVer tag to build and publish a GitHub Release with the
291+ ` .tgz ` and SHA-256 checksum. The tag controls the package version; there is no
292+ need to edit ` package.json ` first. Tests and package installation must pass.
293+
294+ After the workflow files are committed and pushed, tag the commit you want to release:
295+
296+ ``` bash
297+ git tag v0.5.0
298+ git push origin v0.5.0
299+ ```
300+
301+ Use your next unused version. Both ` v0.5.0 ` and ` 0.5.0 ` are accepted; a suffix
302+ such as ` v0.6.0-beta.1 ` creates a prerelease. Version changes happen only in CI,
303+ without a version commit or npm publication. Releases use the built-in
304+ ` GITHUB_TOKEN ` ; no npm token or extra secret is needed.
0 commit comments