Skip to content

Commit 0a1f098

Browse files
committed
test(ci): publish to local npm repository
1 parent 0d8d46c commit 0a1f098

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,19 +277,25 @@ jobs:
277277
mkdir -p $(dirname $WASM_FILE)
278278
wasm-opt -Oz target/wasm/wasm32-unknown-unknown/debug/typegraph_core.wasm -o $WASM_FILE.opt
279279
wasm-tools component new $WASM_FILE.opt -o $WASM_FILE
280-
rm -rf typegraph/node/sdk/src/gen typegraph/node/sdk/dist
280+
281281
jco transpile $WASM_FILE -o typegraph/node/sdk/src/gen --map metatype:typegraph/host=../host/host.js
282282
cd typegraph/node
283283
pnpm install
284284
pnpm run sdk-build
285285
cp ./sdk/{package.json,package-lock.json,LICENSE.md} ./sdk/dist
286286
cd ../..
287-
rm -rf typegraph/python/typegraph/gen
287+
288288
poetry run python -m wasmtime.bindgen $WASM_FILE --out-dir typegraph/python/typegraph/gen
289289
290290
# start the docker containers
291291
deno run -A dev/env.ts base s3 prisma
292292
293+
# publish the sdk to the local registry
294+
cd typegate/node/sdk/dist
295+
npm config set "//localhost:4873/:_authToken" fooBar
296+
npm publish --registry http://localhost:4873
297+
cd ../../../..
298+
293299
# from old test-typegraph-core
294300
# test in native rust, not in wasm for a future rust SDK
295301
# without --tests, the --doc is causing a link error "syntax error in VERSION script"

0 commit comments

Comments
 (0)