promptlike 0.2.0 → 0.2.1
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 +27 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -352,19 +352,41 @@ Publishing is automated: pushing a `cli-v*` git tag runs the
|
|
|
352
352
|
`.github/workflows/cli-publish.yml` workflow, which typechecks, tests, builds,
|
|
353
353
|
and runs `npm publish --access public` (using the `NPM_TOKEN` repo secret).
|
|
354
354
|
|
|
355
|
+
This CLI lives in a monorepo, so bump the version **without** letting `npm`
|
|
356
|
+
create its own tag/commit, then push a `cli-v<version>` tag whose number
|
|
357
|
+
matches `package.json` exactly. Run everything from the repo root:
|
|
358
|
+
|
|
355
359
|
```bash
|
|
356
|
-
|
|
357
|
-
|
|
360
|
+
# 1. Bump cli/package.json only (no auto tag, no auto commit)
|
|
361
|
+
npm --prefix cli version patch --no-git-tag-version # or minor / major
|
|
362
|
+
|
|
363
|
+
# 2. Commit the bump (grab the new number from cli/package.json)
|
|
364
|
+
git add cli/package.json cli/package-lock.json
|
|
365
|
+
git commit -m "chore(cli): v0.2.1"
|
|
366
|
+
git push origin main
|
|
367
|
+
|
|
368
|
+
# 3. Tag that commit — the tag push is what triggers publishing
|
|
358
369
|
git tag cli-v0.2.1
|
|
359
|
-
git push origin
|
|
370
|
+
git push origin cli-v0.2.1
|
|
360
371
|
```
|
|
361
372
|
|
|
362
|
-
|
|
373
|
+
Rules the automation relies on:
|
|
374
|
+
|
|
375
|
+
- The tag number **must** equal `cli/package.json#version` (npm rejects a
|
|
376
|
+
mismatch, and a version can never be published twice).
|
|
377
|
+
- Push the tag on its own (`git push origin cli-v0.2.1`), **not**
|
|
378
|
+
`git push --tags` — that would also push any stray local tags.
|
|
379
|
+
- If the run fails on the test step, nothing is published (publish runs last);
|
|
380
|
+
fix, move the tag to the new commit (`git tag -d` + delete remote + re-tag),
|
|
381
|
+
and push again.
|
|
382
|
+
|
|
383
|
+
To publish manually instead (only if CI is unavailable):
|
|
363
384
|
|
|
364
385
|
```bash
|
|
386
|
+
cd cli
|
|
365
387
|
npm run build
|
|
366
388
|
npm publish --dry-run # verify only dist/, README.md, LICENSE ship
|
|
367
|
-
npm publish --access public
|
|
389
|
+
npm publish --access public # requires npm login + 2FA OTP
|
|
368
390
|
```
|
|
369
391
|
|
|
370
392
|
`package.json#files` and `.npmignore` keep `src/`, `tsconfig.json`, and tests
|
package/package.json
CHANGED