opencode-voice2text 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 +12 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -177,6 +177,8 @@ npm run typecheck
|
|
|
177
177
|
|
|
178
178
|
This repository now includes `.github/workflows/publish.yml`.
|
|
179
179
|
|
|
180
|
+
It is configured for npm trusted publishing with GitHub Actions OIDC, so you do not need to store a long-lived `NPM_TOKEN` in GitHub.
|
|
181
|
+
|
|
180
182
|
Behavior:
|
|
181
183
|
|
|
182
184
|
- every push to `master` runs typecheck and build
|
|
@@ -184,17 +186,17 @@ Behavior:
|
|
|
184
186
|
- if that version is not published yet, it runs `npm publish`
|
|
185
187
|
- if that version already exists, the workflow exits cleanly without failing
|
|
186
188
|
|
|
187
|
-
Required
|
|
189
|
+
Required npm setup:
|
|
188
190
|
|
|
189
|
-
-
|
|
191
|
+
- add this repository as a trusted publisher for the npm package
|
|
190
192
|
|
|
191
|
-
|
|
193
|
+
On npmjs.com, open the package settings for `opencode-voice2text`, then configure:
|
|
192
194
|
|
|
193
|
-
-
|
|
194
|
-
-
|
|
195
|
-
- `
|
|
196
|
-
-
|
|
197
|
-
-
|
|
195
|
+
- Trusted Publisher
|
|
196
|
+
- provider: GitHub Actions
|
|
197
|
+
- owner: `chenxuan520`
|
|
198
|
+
- repository: `opencode-voice2text`
|
|
199
|
+
- workflow filename: `publish.yml`
|
|
198
200
|
|
|
199
201
|
Important release rule:
|
|
200
202
|
|
|
@@ -221,6 +223,8 @@ npm publish
|
|
|
221
223
|
|
|
222
224
|
`prepublishOnly` runs the build automatically.
|
|
223
225
|
|
|
226
|
+
For emergency manual publishing, use your local npm login or a short-lived bypass-2FA token locally. Do not store long-lived publish tokens in GitHub Actions when trusted publishing is enabled.
|
|
227
|
+
|
|
224
228
|
## Notes
|
|
225
229
|
|
|
226
230
|
- The plugin uses Volcengine's websocket ASR protocol directly.
|