Skip to content

Commit 8a34016

Browse files
authored
Use yarn instead of npm in github workflows (#25)
* Make node version consistent with common * Add lint-staged to fix pre-commit hook * Use yarn instead of npm to test before publish * Doc auto updates
1 parent d0d27ca commit 8a34016

20 files changed

+295
-195
lines changed

.github/workflows/lint-test-sdk.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Use Node.js
1313
uses: actions/setup-node@v1
1414
with:
15-
node-version: '14.x'
15+
node-version: '18.x'
1616
- uses: actions/cache@v2
1717
with:
1818
path: './node_modules'
@@ -35,7 +35,7 @@ jobs:
3535
- name: Use Node.js
3636
uses: actions/setup-node@v1
3737
with:
38-
node-version: '14.x'
38+
node-version: '18.x'
3939
- uses: actions/cache@v2
4040
with:
4141
path: './node_modules'
@@ -45,4 +45,4 @@ jobs:
4545
working-directory: ./
4646
- name: Run typecheck
4747
run: yarn typecheck
48-
working-directory: ./
48+
working-directory: ./

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
- uses: actions/setup-node@v3
1212
with:
1313
node-version: 12
14-
- run: npm install
15-
- run: npm test
14+
- run: yarn install
15+
- run: yarn test
1616
- uses: JS-DevTools/npm-publish@v1
1717
with:
1818
token: ${{ secrets.NPM_TOKEN }}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@eppo/js-client-sdk](./js-client-sdk.md) &gt; [EppoJSClient](./js-client-sdk.eppojsclient.md) &gt; [instance](./js-client-sdk.eppojsclient.instance.md)
4+
5+
## EppoJSClient.instance property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
static instance: EppoJSClient;
11+
```

docs/js-client-sdk.eppojsclient.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@eppo/js-client-sdk](./js-client-sdk.md) &gt; [EppoJSClient](./js-client-sdk.eppojsclient.md)
4+
5+
## EppoJSClient class
6+
7+
Client for assigning experiment variations.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
export declare class EppoJSClient extends EppoClient
13+
```
14+
<b>Extends:</b> EppoClient
15+
16+
## Properties
17+
18+
| Property | Modifiers | Type | Description |
19+
| --- | --- | --- | --- |
20+
| [instance](./js-client-sdk.eppojsclient.instance.md) | <code>static</code> | [EppoJSClient](./js-client-sdk.eppojsclient.md) | |
21+

docs/js-client-sdk.getinstance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export declare function getInstance(): IEppoClient;
1313
```
1414
<b>Returns:</b>
1515

16-
[IEppoClient](./js-client-sdk.ieppoclient.md)
16+
IEppoClient
1717

1818
a singleton client instance
1919

docs/js-client-sdk.iassignmentevent.experiment.md

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

docs/js-client-sdk.iassignmentevent.md

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

docs/js-client-sdk.iassignmentevent.subject.md

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

docs/js-client-sdk.iassignmentevent.subjectattributes.md

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

docs/js-client-sdk.iassignmentevent.timestamp.md

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

0 commit comments

Comments
 (0)