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
+27-6Lines changed: 27 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Publish your public-facing Fern Typescript SDK to the [npm registry](https://www
9
9
10
10
## Set up your GitHub integration
11
11
12
-
1. Create a new GitHub repository for your SDK, if you haven't done so already.
12
+
1. Create a new GitHub repository called `company-typescript` (or something similar) for your SDK, if you haven't done so already.
13
13
1. Install the [Fern GitHub App](https://github.com/apps/fern-api): Select **Configure**, then scroll down to **Repository Access**. Select **Only select repositories** and in the dropdown select the repository for your SDK. Click **Save**.
14
14
1. Add your SDK files to your repository.
15
15
@@ -96,7 +96,7 @@ ts-sdk:
96
96
location: npm
97
97
package-name: name-of-your-package
98
98
github:
99
-
repository: your-org/your-repository
99
+
repository: your-org/company-typescript
100
100
```
101
101
102
102
</Step>
@@ -122,17 +122,38 @@ ts-sdk:
122
122
123
123
<Step title="Generate Token">
124
124
125
-
1. Click on **Generate New Token**.
126
-
1. Select **Classic Token**.
127
-
1. Name your token and select **Automation** as the token type.
128
-
1. Once finished, click **Generate Token**.
125
+
Click on **Generate New Token**, then choose the appropriate token type. For more information on access tokens and which type to choose, see npm's [About access tokens](https://docs.npmjs.com/about-access-tokens) documentation.
126
+
127
+
<AccordionGroup>
128
+
<Accordion title="Option 1: Classic Token">
129
+
130
+
1. Select **Classic Token**
131
+
1. Name your token and select **Automation** as the token type.
<Warning>When you click **Generate Token**, you’ll be returned to the **Access Tokens** dashboard. A box on the top of the dashboard will confirm that you successfully created a new token and prompt you to copy your token id. Make sure you save this id, as you'll need to add it to your GitHub repository and `generators.yml` later on.</Warning>
1. Configure your token's access to packages and scopes.
147
+
1. Configure your token's access to organizations. In order to fill this out, you must have at least one organization already configured. See [Creating an organization](https://docs.npmjs.com/creating-an-organization) for more information.
148
+
1. Optionally fill out additional permissions according to your organization's requirements.
0 commit comments