Skip to content

Commit 573fcdc

Browse files
committed
CI: pack workspace deps for the cli bin smoke test
The smoke install pulled @onkernel/cua-agent and @onkernel/cua-ai from the registry, which fails whenever a PR bumps versions ahead of publishing (this PR, and previously #37). Install all three workspace tarballs together so the packed cli resolves its workspace deps locally.
1 parent 3767fee commit 573fcdc

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,20 @@ jobs:
9494
run: npm test --workspace @onkernel/cua-cli
9595
- name: Build cua-cli
9696
run: npm run build --workspace @onkernel/cua-cli
97-
- name: Pack tarball
98-
run: npm pack --workspace @onkernel/cua-cli --pack-destination "$RUNNER_TEMP"
97+
- name: Pack tarballs
98+
# Pack the workspace dependencies too so the smoke install resolves
99+
# them from the tarballs instead of the registry, where the versions
100+
# under development are not published yet.
101+
run: |
102+
npm pack --workspace @onkernel/cua-ai --pack-destination "$RUNNER_TEMP"
103+
npm pack --workspace @onkernel/cua-agent --pack-destination "$RUNNER_TEMP"
104+
npm pack --workspace @onkernel/cua-cli --pack-destination "$RUNNER_TEMP"
99105
- name: CLI bin smoke test
100106
run: |
101107
SMOKE_DIR=$(mktemp -d)
102108
cd "$SMOKE_DIR"
103109
npm init -y > /dev/null
104-
npm install "$RUNNER_TEMP"/onkernel-cua-cli-*.tgz
110+
npm install "$RUNNER_TEMP"/onkernel-cua-ai-*.tgz "$RUNNER_TEMP"/onkernel-cua-agent-*.tgz "$RUNNER_TEMP"/onkernel-cua-cli-*.tgz
105111
OUTPUT=$(./node_modules/.bin/cua --help)
106112
echo "$OUTPUT"
107113
echo "$OUTPUT" | grep -q "Usage:"

0 commit comments

Comments
 (0)