@diafunc/cli 0.1.0 → 0.1.2
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 +13 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -159,13 +159,23 @@ The first publish must be done manually (run `npm publish` locally) to create th
|
|
|
159
159
|
|
|
160
160
|
### Cutting a release
|
|
161
161
|
|
|
162
|
+
**Option A — from the terminal:**
|
|
163
|
+
|
|
162
164
|
```bash
|
|
163
|
-
#
|
|
164
|
-
npm version patch # or minor / major — creates commit + tag
|
|
165
|
+
npm version patch # or minor / major — bumps package.json, commits, creates tag
|
|
165
166
|
git push origin main --follow-tags
|
|
166
167
|
```
|
|
167
168
|
|
|
168
|
-
|
|
169
|
+
**Option B — from the GitLab UI:**
|
|
170
|
+
|
|
171
|
+
1. First bump `package.json` `version` via a small MR (or direct commit to `main`).
|
|
172
|
+
2. Go to https://gitlab.com/diafunc/cli/-/releases/new and create a new release with tag `v<version>` from `main`.
|
|
173
|
+
|
|
174
|
+
Either way, pushing a `vX.Y.Z` tag triggers two CI jobs:
|
|
175
|
+
- `publish` — builds and publishes to npm via OIDC trusted publishing (npm generates [provenance attestations](https://docs.npmjs.com/generating-provenance-statements) automatically)
|
|
176
|
+
- `gitlab-release` — creates a GitLab Release entry linking to the npm package
|
|
177
|
+
|
|
178
|
+
No manual steps after the tag push.
|
|
169
179
|
|
|
170
180
|
## License
|
|
171
181
|
|