Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh onfido-node after onfido-openapi-spec update (6dacb71) #120

Merged
merged 2 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions .github/workflows/node.js.yml → .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI with NPM
name: Node CI with NPM

on:
push:
Expand All @@ -13,9 +13,12 @@ on:
- master
- "release/**"
workflow_dispatch:
release:
types:
- published

jobs:
build:
integration-tests:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -43,3 +46,22 @@ jobs:
ONFIDO_SAMPLE_VIDEO_ID_2: ${{ secrets.ONFIDO_SAMPLE_VIDEO_ID_2 }}
ONFIDO_SAMPLE_MOTION_ID_1: ${{ secrets.ONFIDO_SAMPLE_MOTION_ID_1 }}
ONFIDO_SAMPLE_MOTION_ID_2: ${{ secrets.ONFIDO_SAMPLE_MOTION_ID_2 }}

publish-npm:
runs-on: ubuntu-latest

needs: integration-tests
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16.x
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Build and publish package
run: |
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
46 changes: 0 additions & 46 deletions .github/workflows/npm-publish.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v3.1.0 17th May 2024

- Refresh library up to commit: [6dacb71](https://github.com/onfido/onfido-openapi-spec/commit/6dacb71ce66ee346fb729ff5bd43f5b9b98f62e0)

## v3.0.0 6th May 2024

- Make library auto-generated and based on [Onfido OpenAPI spec](https://github.com/onfido/onfido-openapi-spec)
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Require the package:
const {
DefaultApi,
Configuration,
WebhookEventVerifier,
WebhookEventVerifier
} = require("@onfido/api");
const { isAxiosError } = require("axios");
```
Expand All @@ -44,7 +44,7 @@ import {
DefaultApi,
Configuration,
Region,
WebhookEventVerifier,
WebhookEventVerifier
} from "@onfido/api";
import { isAxiosError } from "axios";
```
Expand All @@ -56,8 +56,8 @@ const onfido = new DefaultApi(
new Configuration({
apiToken: process.env.ONFIDO_API_TOKEN,
region: Region.EU, // Supports Region.EU, Region.US and Region.CA
baseOptions: { timeout: 60_000 }, // Additional Axios options (timeout, etc.)
}),
baseOptions: { timeout: 60_000 } // Additional Axios options (timeout, etc.)
})
);
```

Expand All @@ -75,8 +75,8 @@ Using `async`/`await` (in an `async function`):
last_name: "Doe",
location: {
ip_address: "127.0.0.1",
country_of_residence: "GBR",
},
country_of_residence: "GBR"
}
});

// ...
Expand Down Expand Up @@ -151,7 +151,7 @@ For some common types of streams, like instances of `fs.ReadStream`, you can pro
onfido.uploadDocument(
"passport",
"<APPLICANT_ID>",
fs.createReadStream("path/to/passport.png"),
fs.createReadStream("path/to/passport.png")
);
```

Expand Down Expand Up @@ -180,7 +180,7 @@ This library is automatically generated using [OpenAPI Generator](https://openap

For contributions to the tests instead, please follow the steps below:

1. [Fork](<https://github.com/onfido/onfido-node/fork>) repository
1. [Fork](https://github.com/onfido/onfido-node/fork) repository
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Make your changes
4. Commit your changes (`git commit -am 'Add some feature'`)
Expand Down
Loading
Loading