@releasekit/publish 0.2.0-next.9 → 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Sam Maister
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -21,6 +21,8 @@ npm install -g @releasekit/publish
21
21
  pnpm add -g @releasekit/publish
22
22
  ```
23
23
 
24
+ > **Note:** This package is ESM only and requires Node.js 20+.
25
+
24
26
  ## Quick Start
25
27
 
26
28
  `@releasekit/publish` reads JSON output from `@releasekit/version` and runs a publish pipeline:
@@ -82,13 +84,21 @@ releasekit-publish --input version-output.json
82
84
  ### In CI (GitHub Actions)
83
85
 
84
86
  ```yaml
87
+ - name: Configure permissions (OIDC + git pushes)
88
+ # at job level:
89
+ # permissions:
90
+ # id-token: write
91
+ # contents: write
92
+
85
93
  - name: Version
86
94
  run: releasekit-version --json > version-output.json
87
95
 
88
96
  - name: Publish
89
97
  run: releasekit-publish --input version-output.json
98
+ # For OIDC trusted publishing: no npm token needed (recommended).
99
+ # For token-based publishing: set NPM_TOKEN (or NODE_AUTH_TOKEN).
90
100
  env:
91
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
101
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92
102
  ```
93
103
 
94
104
  ## Configuration
@@ -105,6 +115,10 @@ Configure via `releasekit.config.json`:
105
115
  "access": "public",
106
116
  "copyFiles": ["LICENSE"]
107
117
  },
118
+ "git": {
119
+ "pushMethod": "auto",
120
+ "httpsTokenEnv": "GITHUB_TOKEN"
121
+ },
108
122
  "cargo": {
109
123
  "enabled": false,
110
124
  "noVerify": false