Skip to content

Commit 03c6a8c

Browse files
committed
SDK regeneration
1 parent c3cc9f0 commit 03c6a8c

File tree

61 files changed

+1274
-2703
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1274
-2703
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- name: Compile
1717
run: yarn && yarn build
18-
18+
1919
test:
2020
runs-on: ubuntu-latest
2121

@@ -26,14 +26,17 @@ jobs:
2626
- name: Set up node
2727
uses: actions/setup-node@v3
2828

29-
- name: Compile
30-
run: yarn && yarn test
31-
29+
- name: Test
30+
run: |
31+
yarn
32+
yarn fern test --command='jest --env=node'
33+
yarn fern test --command='jest --env=jsdom'
34+
3235
publish:
3336
needs: [ compile, test ]
3437
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
3538
runs-on: ubuntu-latest
36-
39+
3740
steps:
3841
- name: Checkout repo
3942
uses: actions/checkout@v3
@@ -45,4 +48,11 @@ jobs:
4548
run: yarn install
4649

4750
- name: Build
48-
run: yarn build
51+
run: yarn build
52+
53+
- name: Publish to npm
54+
run: |
55+
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
56+
npm publish --access public
57+
env:
58+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
node_modules
22
.DS_Store
3-
/dist
4-
/Client.d.ts
5-
/Client.js
6-
/environments.d.ts
7-
/environments.js
8-
/index.d.ts
9-
/index.js
10-
/api
11-
/core
12-
/errors
13-
/serialization
3+
/dist

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules
22
src
3+
tests
34
.gitignore
45
.github
56
.fernignore

jest.config.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
2-
"name": "",
3-
"version": "0.1.2",
2+
"name": "beehiiv",
3+
"version": "0.1.3",
44
"private": false,
55
"repository": "https://github.com/fern-demo/beehiiv-typescript",
66
"main": "./index.js",
77
"types": "./index.d.ts",
88
"scripts": {
9-
"format": "prettier --write 'src/**/*.ts'",
9+
"format": "prettier . --write --ignore-unknown",
1010
"build": "tsc",
11-
"prepack": "cp -rv dist/. .",
12-
"test": "jest"
11+
"prepack": "cp -rv dist/. ."
1312
},
1413
"dependencies": {
1514
"url-join": "4.0.1",
@@ -22,11 +21,8 @@
2221
"@types/url-join": "4.0.1",
2322
"@types/qs": "6.9.8",
2423
"@types/node-fetch": "2.6.9",
25-
"jest": "^29.7.0",
26-
"@types/jest": "^29.5.5",
27-
"ts-jest": "^29.1.1",
2824
"@types/node": "17.0.33",
2925
"prettier": "2.7.1",
3026
"typescript": "4.6.4"
3127
}
32-
}
28+
}

0 commit comments

Comments
 (0)