From 821b0d6a6059284d5df12e34ded141c4ad83550e Mon Sep 17 00:00:00 2001 From: Derek Ricciuto Date: Tue, 3 Dec 2024 12:46:24 -0500 Subject: [PATCH] Fix GH actions dependency install issues --- .github/workflows/lint.yml | 8 ++++---- .github/workflows/publish_agentkit.yml | 4 ++-- .github/workflows/publish_docs.yml | 6 +++--- .github/workflows/publish_langchain.yml | 4 ++-- .github/workflows/unit_tests.yml | 8 ++++---- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5e24f35..04b50ce 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,12 +12,12 @@ jobs: node-version: "18" cache: "npm" # Install dependencies in parent directory first - - run: npm ci + - run: npm install # Then install and lint in working directory - name: Install and lint agentkit working-directory: ./cdp-agentkit-core run: | - npm ci + npm install npm run lint npm run format @@ -30,11 +30,11 @@ jobs: node-version: "18" cache: "npm" # Install dependencies in parent directory first - - run: npm ci + - run: npm install # Then install and lint in working directory - name: Install and lint langchain working-directory: ./cdp-langchain run: | - npm ci + npm install npm run lint npm run format \ No newline at end of file diff --git a/.github/workflows/publish_agentkit.yml b/.github/workflows/publish_agentkit.yml index 46d0f0d..fc5e3cd 100644 --- a/.github/workflows/publish_agentkit.yml +++ b/.github/workflows/publish_agentkit.yml @@ -16,12 +16,12 @@ jobs: node-version: "18" registry-url: "https://registry.npmjs.org" # Install dependencies in parent directory first - - run: npm ci + - run: npm install # Then install, build and publish in working directory - name: Install, build and publish agentkit working-directory: ./cdp-agentkit-core run: | - npm ci + npm install npm run build npm publish --provenance --access public env: diff --git a/.github/workflows/publish_docs.yml b/.github/workflows/publish_docs.yml index 25adce9..f67938d 100644 --- a/.github/workflows/publish_docs.yml +++ b/.github/workflows/publish_docs.yml @@ -14,13 +14,13 @@ jobs: cache: "npm" # Install dependencies in parent directory first - - run: npm ci + - run: npm install # Build cdp-agentkit-core docs - name: Build AgentKit Core docs run: | cd cdp-agentkit-core - npm ci + npm install npm run docs cd .. mkdir -p docs/cdp-agentkit-core @@ -30,7 +30,7 @@ jobs: - name: Build LangChain docs run: | cd cdp-langchain - npm ci + npm install npm run docs cd .. mkdir -p docs/cdp-langchain diff --git a/.github/workflows/publish_langchain.yml b/.github/workflows/publish_langchain.yml index 7ad921f..8ec6503 100644 --- a/.github/workflows/publish_langchain.yml +++ b/.github/workflows/publish_langchain.yml @@ -16,12 +16,12 @@ jobs: node-version: "18" registry-url: "https://registry.npmjs.org" # Install dependencies in parent directory first - - run: npm ci + - run: npm install # Then install, build and publish in working directory - name: Install, build and publish langchain working-directory: ./cdp-langchain run: | - npm ci + npm install npm run build npm publish --provenance --access public env: diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index c097b6f..89f666a 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -15,12 +15,12 @@ jobs: node-version: ${{ matrix.node-version }} cache: "npm" # Install dependencies in parent directory first - - run: npm ci + - run: npm install # Then install and test in working directory - name: Install and test agentkit working-directory: ./cdp-agentkit-core run: | - npm ci + npm install npm run test:unit test-langchain: @@ -35,10 +35,10 @@ jobs: node-version: ${{ matrix.node-version }} cache: "npm" # Install dependencies in parent directory first - - run: npm ci + - run: npm install # Then install and test in working directory - name: Install and test langchain working-directory: ./cdp-langchain run: | - npm ci + npm install npm run test:unit \ No newline at end of file