Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Clean build for publication #14

Merged
merged 11 commits into from
Dec 4, 2024
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
Loading