Skip to content

Commit 9a18cdd

Browse files
author
alex-w-99
committed
ci: seed loader smoke with prerelease SDK
1 parent e76bb7d commit 9a18cdd

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ jobs:
7878
./.ci/inkbox/sdk/typescript \
7979
@opencode-ai/sdk@1.17.18 @opencode-ai/plugin@1.17.18
8080
- run: npm install -g opencode-ai@latest
81-
- run: bash scripts/smoke-loader.sh
81+
- run: INKBOX_SDK_PATH="$PWD/.ci/inkbox/sdk/typescript" bash scripts/smoke-loader.sh

scripts/smoke-loader.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ echo "==> creating throwaway project in $WORKDIR"
2525
cd "$WORKDIR"
2626
git init -q .
2727
npm init -y >/dev/null
28-
npm install --silent "$TARBALL"
28+
if [ -n "${INKBOX_SDK_PATH:-}" ]; then
29+
npm install --silent "$INKBOX_SDK_PATH" "$TARBALL"
30+
else
31+
npm install --silent "$TARBALL"
32+
fi
2933

3034
mkdir -p .opencode/plugins
3135
# The wrapper loads the packaged plugin exactly as opencode would, then drops

0 commit comments

Comments
 (0)