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
+59-59Lines changed: 59 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,16 +68,16 @@ Publish your public-facing Fern Typescript SDK to the [npm registry](https://www
68
68
Your package name must be unique in the npm repository, otherwise releasing your SDK to npm will fail. Update your package name if you haven't done so already:
69
69
70
70
71
-
```yaml title="TypeScript" {8}
72
-
groups:
73
-
ts-sdk:
74
-
generators:
75
-
- name: fernapi/fern-typescript-node-sdk
76
-
version: 1.0.0
77
-
output:
78
-
location: npm
79
-
package-name: name-of-your-package
80
-
```
71
+
```yaml title="TypeScript" {8}
72
+
groups:
73
+
ts-sdk:
74
+
generators:
75
+
- name: fernapi/fern-typescript-node-sdk
76
+
version: 1.0.0
77
+
output:
78
+
location: npm
79
+
package-name: name-of-your-package
80
+
```
81
81
82
82
</Step>
83
83
@@ -86,18 +86,18 @@ Publish your public-facing Fern Typescript SDK to the [npm registry](https://www
86
86
87
87
Add the path to your GitHub repository to `generators.yml`:
88
88
89
-
```yaml title="TypeScript" {10-11}
90
-
groups:
91
-
ts-sdk:
92
-
generators:
93
-
- name: fernapi/fern-typescript-node-sdk
94
-
version: 0.9.5
95
-
output:
96
-
location: npm
97
-
package-name: name-of-your-package
98
-
github:
99
-
repository: your-org/your-repository
100
-
```
89
+
```yaml title="TypeScript" {10-11}
90
+
groups:
91
+
ts-sdk:
92
+
generators:
93
+
- name: fernapi/fern-typescript-node-sdk
94
+
version: 0.9.5
95
+
output:
96
+
location: npm
97
+
package-name: name-of-your-package
98
+
github:
99
+
repository: your-org/your-repository
100
+
```
101
101
102
102
</Step>
103
103
</Steps>
@@ -198,50 +198,50 @@ Using GitLab? Follow [these steps](/learn/docs/developer-tools/gitlab#add-a-toke
198
198
Add a GitHub Action to trigger releases for your SDK. Add a new file called `publish-typescript-sdk.yml` (or something similar) to a new `.github/workflows` directory. Your file should look like this:
199
199
200
200
201
-
```yaml title="TypeScript" maxLines=0
202
-
name: Publish TypeScript SDK
201
+
```yaml title="TypeScript" maxLines=0
202
+
name: Publish TypeScript SDK
203
203
204
-
on:
205
-
workflow_dispatch:
206
-
inputs:
207
-
version:
208
-
description: "The version of the TypeScript SDK that you would like to release"
209
-
required: true
210
-
type: string
204
+
on:
205
+
workflow_dispatch:
206
+
inputs:
207
+
version:
208
+
description: "The version of the TypeScript SDK that you would like to release"
0 commit comments