You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/products/sdks/overview/typescript/publishing-to-npm.mdx
+6-12Lines changed: 6 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,8 +166,8 @@ OIDC-based publishing (also known as "trusted publishing") is the most secure wa
166
166
Configure trusted publishing on npmjs.com to allow your GitHub repository to publish:
167
167
168
168
1. Navigate to your package settings on npmjs.com
169
-
1. Find the "Trusted Publisher" section and click "Add trusted publisher"
170
-
1. Select "GitHub Actions" as your provider
169
+
1. Find the **Trusted Publisher** section and click **Add trusted publisher**
170
+
1. Select **GitHub Actions** as your provider
171
171
1. Fill in:
172
172
- **Organization or user**: Your GitHub username or organization
173
173
- **Repository**: Your TypeScript SDK repository name (e.g., `your-org/your-repository`)
@@ -343,8 +343,8 @@ This is the easiest path if you can upgrade to version 3.12.0 or later of the Ty
343
343
Follow npm's ["Add a trusted publisher on npmjs.com"](https://docs.npmjs.com/trusted-publishers#step-1-add-a-trusted-publisher-on-npmjscom) instructions:
344
344
345
345
1. Navigate to your package settings on [npmjs.com](https://npmjs.com)
346
-
1. Find the "Trusted Publisher" section and click "Add trusted publisher"
347
-
1. Select "GitHub Actions" as your provider
346
+
1. Find the **Trusted Publisher** section and click **Add trusted publisher**
347
+
1. Select **GitHub Actions** as your provider
348
348
1. Configure:
349
349
- **Organization or user**: Your GitHub username or organization
350
350
- **Repository**: Your TypeScript SDK repository name
@@ -355,14 +355,14 @@ This is the easiest path if you can upgrade to version 3.12.0 or later of the Ty
355
355
356
356
<Step title="Update your generators.yml">
357
357
358
-
Change the `output.token` field from `${NPM_TOKEN}` to `OIDC` and ensure you're using version 3.12.0 or later:
358
+
Change the `output.token` field from `${NPM_TOKEN}` to `OIDC` and ensure you're using version `3.12.0` or later:
359
359
360
360
```yaml title="generators.yml"
361
361
groups:
362
362
ts-sdk:
363
363
generators:
364
364
- name: fernapi/fern-typescript-sdk
365
-
version: 3.12.0 # Must be 3.12.0 or later
365
+
version: <Markdown src="/snippets/typescript-sdk-version.mdx"/> # Must be 3.12.0 or later
366
366
output:
367
367
location: npm
368
368
package-name: your-package-name
@@ -535,9 +535,3 @@ If your workflow continues using the old token-based authentication:
0 commit comments