Skip to content

Commit d86a25b

Browse files
msarcevmarc2332
andauthored
fix(ts-sdk): Fix build and improve CI (#267)
* fix(ts-sdk): Fix exports * fix(ci): Add build to typescript.yaml. Add sdk trigger to vercel preview-deploy * fix(ci): Add build to typescript.yaml sdk tests * Update typescript.yaml * Update typescript.yaml * fix(ci): readd turbo build --------- Co-authored-by: Marc Espin <[email protected]>
1 parent 2eb17e0 commit d86a25b

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/iota-names.preview-deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Preview Deploy for IOTA Names
33
on:
44
pull_request:
55
paths:
6+
- "sdk/**"
67
- "dapp/**"
78
- ".github/workflows/iota-names.preview-deploy.yml"
89
- ".github/workflows/vercel-app-deploy.yml"

.github/workflows/typescript.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ concurrency:
2020
cancel-in-progress: true
2121

2222
jobs:
23-
lint:
24-
name: TS Lint
23+
build_and_lint:
24+
name: TS Build / Lint
2525
runs-on: ubuntu-latest
2626
steps:
2727
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -39,6 +39,10 @@ jobs:
3939
run: |
4040
pnpm install
4141
42+
- name: Run pnpm build
43+
run: |
44+
pnpm turbo build
45+
4246
- name: Run pnpm lint
4347
run: |
4448
pnpm lint
@@ -71,6 +75,10 @@ jobs:
7175
run: |
7276
pnpm install
7377
78+
- name: Build SDK
79+
run: |
80+
pnpm sdk build
81+
7482
- name: Prepare local network & run SDK tests
7583
env:
7684
IS_CI_JOB: true

sdk/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
export { IotaNamesClient } from './iota-names-client';
66
export { IotaNamesTransaction } from './iota-names-transaction';
7-
export type { Network, IotaNamesClientConfig, Config, NameRecord } from './types';
7+
export type { Network, IotaNamesClientConfig, NameRecord } from './types';
88
export { ALLOWED_METADATA, packages } from './constants';
99
export {
1010
isSubName,

0 commit comments

Comments
 (0)