genaicode 2.4.0 → 2.4.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/docs/releasing.md +26 -0
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Releasing
|
|
2
|
+
|
|
3
|
+
Pushing a version tag publishes that version to npm from GitHub Actions
|
|
4
|
+
([`.github/workflows/publish.yaml`](../.github/workflows/publish.yaml)).
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npm version patch # or minor / major: bumps package.json, commits, tags vX.Y.Z
|
|
8
|
+
git push --follow-tags
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
The workflow refuses a tag that does not match `package.json`, runs `npm run check`
|
|
12
|
+
through `prepublishOnly`, and publishes with provenance.
|
|
13
|
+
|
|
14
|
+
## One-time setup
|
|
15
|
+
|
|
16
|
+
The workflow authenticates with npm trusted publishing (OIDC), so no npm token is stored.
|
|
17
|
+
On npmjs.com, open the `genaicode` package, then Settings → Trusted publishing, and add a
|
|
18
|
+
GitHub Actions publisher:
|
|
19
|
+
|
|
20
|
+
- Organization or user: `gtanczyk`
|
|
21
|
+
- Repository: `genaicode`
|
|
22
|
+
- Workflow filename: `publish.yaml`
|
|
23
|
+
- Environment: `npm`
|
|
24
|
+
|
|
25
|
+
The `npm` environment also exists in the repository's Settings → Environments, where it can
|
|
26
|
+
require a reviewer or restrict which tags may deploy.
|