From ad188265791c64d5b95b4aced2847093dfbad817 Mon Sep 17 00:00:00 2001 From: Tevin Wang Date: Fri, 14 Jul 2023 12:46:48 -0700 Subject: [PATCH] [Documentation Code Testing] build node sdk in release (#307) --- .github/workflows/docs_test.yml | 2 +- docs/test/md_testing.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs_test.yml b/.github/workflows/docs_test.yml index 37cfa3b9..084d563b 100644 --- a/.github/workflows/docs_test.yml +++ b/.github/workflows/docs_test.yml @@ -81,7 +81,7 @@ jobs: run: | cd docs/test/node_modules/vectordb npm ci - npm run build + npm run build-release npm run tsc - name: Create test files run: | diff --git a/docs/test/md_testing.js b/docs/test/md_testing.js index 6e9c3cc4..7dbd4fb8 100644 --- a/docs/test/md_testing.js +++ b/docs/test/md_testing.js @@ -7,6 +7,7 @@ const excludedFiles = [ "../src/embedding.md", "../src/examples/serverless_lancedb_with_s3_and_lambda.md", "../src/examples/serverless_qa_bot_with_modal_and_langchain.md", + "../src/examples/transformerjs_embedding_search_nodejs.md", "../src/examples/youtube_transcript_bot_with_nodejs.md", ]; const nodePrefix = "javascript"; @@ -48,4 +49,4 @@ for (const file of files.filter((file) => !excludedFiles.includes(file))) { fs.mkdirSync(path.dirname(outPath), { recursive: true }); fs.writeFileSync(outPath, asyncPrefix + "\n" + lines.join("\n") + asyncSuffix); } -} \ No newline at end of file +}