Skip to content

Commit 49d57c5

Browse files
committed
Feedback
1 parent b7c147f commit 49d57c5

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

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

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ OIDC-based publishing (also known as "trusted publishing") is the most secure wa
166166
Configure trusted publishing on npmjs.com to allow your GitHub repository to publish:
167167

168168
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
171171
1. Fill in:
172172
- **Organization or user**: Your GitHub username or organization
173173
- **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
343343
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:
344344

345345
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
348348
1. Configure:
349349
- **Organization or user**: Your GitHub username or organization
350350
- **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
355355

356356
<Step title="Update your generators.yml">
357357

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

360360
```yaml title="generators.yml"
361361
groups:
362362
ts-sdk:
363363
generators:
364364
- 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
366366
output:
367367
location: npm
368368
package-name: your-package-name
@@ -535,9 +535,3 @@ If your workflow continues using the old token-based authentication:
535535

536536
</Accordion>
537537
</AccordionGroup>
538-
539-
## Additional resources
540-
541-
- [npm Trusted Publishing Documentation](https://docs.npmjs.com/trusted-publishers)
542-
- [GitHub Actions OIDC Documentation](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect)
543-
- [npm Provenance Documentation](https://docs.npmjs.com/generating-provenance-statements)

0 commit comments

Comments
 (0)