Skip to content

Commit

Permalink
ci: pack all module under packages
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 committed Oct 18, 2024
1 parent 07a40ac commit 1efc93a
Showing 1 changed file with 8 additions and 33 deletions.
41 changes: 8 additions & 33 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,39 +136,14 @@ jobs:
run: pnpm run build
- name: Copy examples
run: rsync -rv --exclude=node_modules ./examples ${{ runner.temp }}
- name: Pack @llamaindex/cloud
run: pnpm pack --pack-destination ${{ runner.temp }}
working-directory: packages/cloud
- name: Pack @llamaindex/openai
run: pnpm pack --pack-destination ${{ runner.temp }}
working-directory: packages/llm/openai
- name: Pack @llamaindex/deepinfra
run: pnpm pack --pack-destination ${{ runner.temp }}
working-directory: packages/llm/deepinfra
- name: Pack @llamaindex/portkey-ai
run: pnpm pack --pack-destination ${{ runner.temp }}
working-directory: packages/llm/portkey-ai
- name: Pack @llamaindex/replicate
run: pnpm pack --pack-destination ${{ runner.temp }}
working-directory: packages/llm/replicate
- name: Pack @llamaindex/anthropic
run: pnpm pack --pack-destination ${{ runner.temp }}
working-directory: packages/llm/anthropic
- name: Pack @llamaindex/groq
run: pnpm pack --pack-destination ${{ runner.temp }}
working-directory: packages/llm/groq
- name: Pack @llamaindex/ollama
run: pnpm pack --pack-destination ${{ runner.temp }}
working-directory: packages/llm/ollama
- name: Pack @llamaindex/core
run: pnpm pack --pack-destination ${{ runner.temp }}
working-directory: packages/core
- name: Pack @llamaindex/env
run: pnpm pack --pack-destination ${{ runner.temp }}
working-directory: packages/env
- name: Pack llamaindex
run: pnpm pack --pack-destination ${{ runner.temp }}
working-directory: packages/llamaindex
- name: Pack packages
run: |
for dir in packages/*; do
if [ -d "$dir" ]; then
echo "Packing $dir"
pnpm pack --pack-destination ${{ runner.temp }} -C $dir
fi
done
- name: Install
run: npm add ${{ runner.temp }}/*.tgz
working-directory: ${{ runner.temp }}/examples
Expand Down

0 comments on commit 1efc93a

Please sign in to comment.