Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed May 15, 2024
1 parent c3cc9f0 commit 03c6a8c
Show file tree
Hide file tree
Showing 61 changed files with 1,274 additions and 2,703 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- name: Compile
run: yarn && yarn build

test:
runs-on: ubuntu-latest

Expand All @@ -26,14 +26,17 @@ jobs:
- name: Set up node
uses: actions/setup-node@v3

- name: Compile
run: yarn && yarn test

- name: Test
run: |
yarn
yarn fern test --command='jest --env=node'
yarn fern test --command='jest --env=jsdom'
publish:
needs: [ compile, test ]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -45,4 +48,11 @@ jobs:
run: yarn install

- name: Build
run: yarn build
run: yarn build

- name: Publish to npm
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
12 changes: 1 addition & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
node_modules
.DS_Store
/dist
/Client.d.ts
/Client.js
/environments.d.ts
/environments.js
/index.d.ts
/index.js
/api
/core
/errors
/serialization
/dist
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
src
tests
.gitignore
.github
.fernignore
Expand Down
5 changes: 0 additions & 5 deletions jest.config.js

This file was deleted.

14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"name": "",
"version": "0.1.2",
"name": "beehiiv",
"version": "0.1.3",
"private": false,
"repository": "https://github.com/fern-demo/beehiiv-typescript",
"main": "./index.js",
"types": "./index.d.ts",
"scripts": {
"format": "prettier --write 'src/**/*.ts'",
"format": "prettier . --write --ignore-unknown",
"build": "tsc",
"prepack": "cp -rv dist/. .",
"test": "jest"
"prepack": "cp -rv dist/. ."
},
"dependencies": {
"url-join": "4.0.1",
Expand All @@ -22,11 +21,8 @@
"@types/url-join": "4.0.1",
"@types/qs": "6.9.8",
"@types/node-fetch": "2.6.9",
"jest": "^29.7.0",
"@types/jest": "^29.5.5",
"ts-jest": "^29.1.1",
"@types/node": "17.0.33",
"prettier": "2.7.1",
"typescript": "4.6.4"
}
}
}
Loading

0 comments on commit 03c6a8c

Please sign in to comment.