Skip to content

Commit a065ad4

Browse files
committed
fix code formatting
1 parent f12db36 commit a065ad4

File tree

1 file changed

+59
-59
lines changed

1 file changed

+59
-59
lines changed

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

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,16 @@ Publish your public-facing Fern Typescript SDK to the [npm registry](https://www
6868
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:
6969

7070

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+
```
8181
8282
</Step>
8383
@@ -86,18 +86,18 @@ Publish your public-facing Fern Typescript SDK to the [npm registry](https://www
8686
8787
Add the path to your GitHub repository to `generators.yml`:
8888

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+
```
101101
102102
</Step>
103103
</Steps>
@@ -198,50 +198,50 @@ Using GitLab? Follow [these steps](/learn/docs/developer-tools/gitlab#add-a-toke
198198
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:
199199

200200

201-
```yaml title="TypeScript" maxLines=0
202-
name: Publish TypeScript SDK
201+
```yaml title="TypeScript" maxLines=0
202+
name: Publish TypeScript SDK
203203
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"
209+
required: true
210+
type: string
211211
212-
jobs:
213-
release:
214-
runs-on: ubuntu-latest
215-
steps:
216-
- name: Checkout repo
217-
uses: actions/checkout@v4
212+
jobs:
213+
release:
214+
runs-on: ubuntu-latest
215+
steps:
216+
- name: Checkout repo
217+
uses: actions/checkout@v4
218218
219-
- name: Install Fern CLI
220-
run: npm install -g fern-api
219+
- name: Install Fern CLI
220+
run: npm install -g fern-api
221221
222-
- name: Release TypeScript SDK
223-
env:
224-
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
225-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
226-
run: |
227-
fern generate --group ts-sdk --version ${{ inputs.version }} --log-level debug
228-
```
222+
- name: Release TypeScript SDK
223+
env:
224+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
225+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
226+
run: |
227+
fern generate --group ts-sdk --version ${{ inputs.version }} --log-level debug
228+
```
229229

230230
The group name in the `run` command (`ts-sdk`) must match the name of your group in `generators.yml`:
231231

232-
```yaml {2}
233-
groups:
234-
ts-sdk:
235-
generators:
236-
- name: fernapi/fern-typescript-node-sdk
237-
version: 1.10.3
238-
output:
239-
location: npm
240-
package-name: name-of-your-package
241-
token: ${NPM_TOKEN}
242-
github:
243-
repository: your-org/your-repository
244-
```
232+
```yaml {2}
233+
groups:
234+
ts-sdk:
235+
generators:
236+
- name: fernapi/fern-typescript-node-sdk
237+
version: 1.10.3
238+
output:
239+
location: npm
240+
package-name: name-of-your-package
241+
token: ${NPM_TOKEN}
242+
github:
243+
repository: your-org/your-repository
244+
```
245245
</Step>
246246
</Steps>
247247

0 commit comments

Comments
 (0)