Skip to content

Commit

Permalink
Fix GH actions dependency install issues
Browse files Browse the repository at this point in the history
  • Loading branch information
derek-cb committed Dec 3, 2024
1 parent e2b5245 commit 821b0d6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/publish_agentkit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_langchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 821b0d6

Please sign in to comment.