Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
chore: Clean build for publication (#14)
Browse files Browse the repository at this point in the history
* chore: Clean build for publication

* update package-lock.json

* use turbo to publish

* only build cdp-langchain

* rm package lock before building

* install top level tools

* fix path

* update typedoc

* ignore scripts

* update package-lock.json

* update test gha
  • Loading branch information
John-peterson-coinbase authored Dec 4, 2024
1 parent d23d065 commit 8e654dd
Show file tree
Hide file tree
Showing 6 changed files with 5,612 additions and 1,387 deletions.
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 install
- run: npm ci
# Then install, build and publish in working directory
- name: Install, build and publish agentkit
working-directory: ./cdp-agentkit-core
run: |
npm install
npm ci
npm run build
npm publish --provenance --access public
env:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/publish_langchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@ jobs:
with:
node-version: "18"
registry-url: "https://registry.npmjs.org"
# Install dependencies in parent directory first
- run: npm install
# Then install, build and publish in working directory
- run: npm i && npm run build
- name: Install, build and publish langchain
working-directory: ./cdp-langchain
run: |
npm install
npm run build
npm publish --provenance --access public
npm publish --ignore-scripts --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
27 changes: 2 additions & 25 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Unit Tests
on: [pull_request]

jobs:
test-agentkit:
test:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -15,30 +15,7 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: "npm"
# Install dependencies in parent directory first
- run: npm install
# Then install and test in working directory
- name: Install and test agentkit
working-directory: ./cdp-agentkit-core
run: |
npm install
npm i
npm run test
test-langchain:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["18", "20"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
# Install dependencies in parent directory first
- run: npm install
# Then install and test in working directory
- name: Install and test langchain
working-directory: ./cdp-langchain
run: |
npm install
npm run test
Loading

0 comments on commit 8e654dd

Please sign in to comment.