Skip to content

Commit ce58414

Browse files
authored
Update publishing-to-npm.mdx (#1524)
1 parent 9e053c4 commit ce58414

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

fern/products/sdks/overview/typescript/publishing-to-npm.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Choose how you want to authenticate with npmjs when publishing.
122122
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.
123123
124124
<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
126126
- Fern CLI version `0.94.0` or later (only required for local generation with `--local`)
127127
</Info>
128128

@@ -136,7 +136,7 @@ OIDC-based publishing (also known as "trusted publishing") is the most secure wa
136136
ts-sdk:
137137
generators:
138138
- 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
140140
output:
141141
location: npm
142142
package-name: your-package-name
@@ -335,10 +335,10 @@ Select the approach that fits your situation:
335335
<AccordionGroup>
336336
<Accordion title="Path 1: Upgrade your generator (Recommended)">
337337

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.
339339

340340
**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
342342
- You haven't `.fernignore`'d your CI workflow file
343343

344344
<Steps>
@@ -359,14 +359,14 @@ This is the easiest path if you can upgrade to version 3.12.0 or later of the Ty
359359

360360
<Step title="Update your generators.yml">
361361

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:
363363

364364
```yaml title="generators.yml"
365365
groups:
366366
ts-sdk:
367367
generators:
368368
- 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
370370
output:
371371
location: npm
372372
package-name: your-package-name
@@ -534,7 +534,7 @@ If your workflow continues using the old token-based authentication:
534534

535535
- Verify you've removed the `npm config set` line and the `env: NPM_TOKEN` block from the publish step
536536
- 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)
538538
- When using `--local` generation, you need to use Fern CLI version 0.94.0 or later
539539

540540
</Accordion>

0 commit comments

Comments
 (0)