@helderberto/release 0.1.0 → 0.1.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/LICENSE +1 -1
- package/README.md +22 -2
- package/package.json +2 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @helderberto/release
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@helderberto/release)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Release CLI for npm and pnpm projects, single-package or monorepo: draft the changelog from commits, edit it, then cut and publish.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install -D @helderberto/release
|
|
11
|
+
npm pkg set scripts.release=release
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`package.json` needs a `repository` URL, for the changelog links.
|
|
15
|
+
|
|
16
|
+
## Use
|
|
17
|
+
|
|
18
|
+
1. `npm run release -- draft` writes commits since the last release under `## [Unreleased]` in `CHANGELOG.md`: `feat` under Added, `fix` under Fixed, anything that isn't a Conventional Commit under Changed.
|
|
19
|
+
2. Edit the entries by hand and commit.
|
|
20
|
+
3. `npm run release -- cut` picks the next version from the entries per Keep a Changelog and SemVer, moves them under it, bumps `package.json`, commits and tags.
|
|
21
|
+
4. `npm run release -- publish` publishes what isn't on npm yet. In a pnpm workspace it packs with pnpm, resolving `workspace:` and `catalog:` versions, and publishes the tarball with npm.
|
|
22
|
+
|
|
23
|
+
Every command takes `--dry-run`. In a monorepo, `--package <name>` limits a command to one package. `publish --otp <code>` passes a one-time password to npm.
|
|
24
|
+
|
|
25
|
+
Tags are `vX.Y.Z` in a single-package repo and `<name>@x.y.z` in a monorepo. In GitHub Actions, `cut` writes the releases to `GITHUB_OUTPUT` for a later step to create GitHub releases; [this repo's `release.yml`](https://github.com/helderberto/coding-standards/blob/main/.github/workflows/release.yml) shows how, with npm trusted publishing.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helderberto/release",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@helderberto/tsconfig": "0.1.
|
|
24
|
+
"@helderberto/tsconfig": "0.1.1",
|
|
25
25
|
"@types/node": "26.6.11"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|