Skip to content

Commit 4ef019d

Browse files
committed
chore: add readme
1 parent 007b977 commit 4ef019d

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
echo "### No version cut" >> $GITHUB_STEP_SUMMARY
6666
echo "Check Semantic Release output for details"
6767
- name: Clean Github Release for RC
68-
if: ${{ contains(steps.semantic.outputs.new_release_version, '-rc.') == false }}
68+
if: ${{ steps.semantic.outputs.new_release_version != '' && contains(steps.semantic.outputs.new_release_version, '-rc.') == false }}
6969
run: ./scripts/clean-rc-releases.sh
7070
env:
7171
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,25 @@
1-
# api
1+
# Sentio API
2+
3+
## Setup
4+
5+
```
6+
pnpm add @sentio/api
7+
```
8+
9+
## Usage
10+
11+
```ts
12+
import { Configuration, WebApi } from "@sentio/api";
13+
14+
15+
const config = new Configuration({
16+
apiKey: process.env.SENTIO_API_KEY,
17+
});
18+
const api = new WebApi(config);
19+
const projects = await api.getProjectList();
20+
console.log(projects);
21+
```
22+
23+
## Documentation
24+
25+
[Sentio API Reference](https://docs.sentio.xyz/reference)

test/simple.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test("getProjectList", async () => {
77
assert(apiKey, "API key can't be found for the test");
88

99
const config = new Configuration({
10-
apiKey: apiKey,
10+
apiKey,
1111
});
1212
const api = new WebApi(config);
1313
const projects = await api.getProjectList();

0 commit comments

Comments
 (0)