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
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ Choose how you want to authenticate with npmjs when publishing.
122
122
OIDC-based publishing (also known as "trusted publishing") is the most secure way to publish. With OIDC, you don't need to manage authentication tokens - npmjs trusts your GitHub repository to publish directly.
123
123
124
124
<Info title="Prerequisites">
125
-
- Fern TypeScript SDK generator version `3.12.0` or later
125
+
- Fern TypeScript SDK generator version `3.12.2` or later
126
126
- Fern CLI version `0.94.0` or later (only required for local generation with `--local`)
127
127
</Info>
128
128
@@ -136,7 +136,7 @@ OIDC-based publishing (also known as "trusted publishing") is the most secure wa
136
136
ts-sdk:
137
137
generators:
138
138
- name: fernapi/fern-typescript-sdk
139
-
version: <Markdown src="/snippets/version-number-ts.mdx"/> # Must be 3.12.0 or later
139
+
version: <Markdown src="/snippets/version-number-ts.mdx"/> # Must be 3.12.2 or later
140
140
output:
141
141
location: npm
142
142
package-name: your-package-name
@@ -335,10 +335,10 @@ Select the approach that fits your situation:
335
335
<AccordionGroup>
336
336
<Accordion title="Path 1: Upgrade your generator (Recommended)">
337
337
338
-
This is the easiest path if you can upgrade to version 3.12.0 or later of the TypeScript SDK generator.
338
+
This is the easiest path if you can upgrade to version 3.12.2 or later of the TypeScript SDK generator.
339
339
340
340
**When to use this path:**
341
-
- You're able to upgrade to Fern TypeScript SDK generator version 3.12.0 or later
341
+
- You're able to upgrade to Fern TypeScript SDK generator version 3.12.2 or later
342
342
- You haven't `.fernignore`'d your CI workflow file
343
343
344
344
<Steps>
@@ -359,14 +359,14 @@ This is the easiest path if you can upgrade to version 3.12.0 or later of the Ty
359
359
360
360
<Step title="Update your generators.yml">
361
361
362
-
Change the `output.token` field from `${NPM_TOKEN}` to `OIDC` and ensure you're using version `3.12.0` or later:
362
+
Change the `output.token` field from `${NPM_TOKEN}` to `OIDC` and ensure you're using version `3.12.2` or later:
363
363
364
364
```yaml title="generators.yml"
365
365
groups:
366
366
ts-sdk:
367
367
generators:
368
368
- name: fernapi/fern-typescript-sdk
369
-
version: <Markdown src="/snippets/version-number-ts.mdx"/> # Must be 3.12.0 or later
369
+
version: <Markdown src="/snippets/version-number-ts.mdx"/> # Must be 3.12.2 or later
370
370
output:
371
371
location: npm
372
372
package-name: your-package-name
@@ -534,7 +534,7 @@ If your workflow continues using the old token-based authentication:
534
534
535
535
- Verify you've removed the `npm config set` line and the `env: NPM_TOKEN` block from the publish step
536
536
- Check that npm CLI version 11.5.1+ is installed (add the update npm step)
537
-
- Ensure you're using generator version 3.12.0 or later (if using Path 1)
537
+
- Ensure you're using generator version 3.12.2 or later (if using Path 1)
538
538
- When using `--local` generation, you need to use Fern CLI version 0.94.0 or later
0 commit comments