Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(release): publish workspace packages with pnpm (#3417)

r33drichardsfe203d714418
diff --git a/.github/workflows/ts-reusable-publish.yml b/.github/workflows/ts-reusable-publish.yml
index 74b65c2dc6..875c385d95 100644
--- a/.github/workflows/ts-reusable-publish.yml
+++ b/.github/workflows/ts-reusable-publish.yml
@@ -104,6 +104,12 @@ jobs:
- name: Publish to npm
if: steps.verify-version.outputs.should_publish == 'true' || steps.check-version.outputs.changed == 'true'
working-directory: ./${{ inputs.package_dir }}
- run: npm publish --access public --provenance
+ run: |
+ if [ "${{ inputs.package_manager }}" = "pnpm" ]; then
+ # pnpm rewrites workspace protocol dependencies to registry semver ranges.
+ pnpm publish --access public --provenance
+ else
+ npm publish --access public --provenance
+ fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
diff --git a/docs/content/docs/how-to-guides/sandbox/create-pool-with-typescript.mdx b/docs/content/docs/how-to-guides/sandbox/create-pool-with-typescript.mdx
index f0c0557a45..06510161fe 100644
--- a/docs/content/docs/how-to-guides/sandbox/create-pool-with-typescript.mdx
+++ b/docs/content/docs/how-to-guides/sandbox/create-pool-with-typescript.mdx
@@ -4,6 +4,7 @@ description: Create a reusable Fleet pool and capture a sandbox screenshot from
---
import { Callout } from 'fumadocs-ui/components/callout';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
Use `@trycua/fleet` to create a reusable sandbox pool from TypeScript. This
guide creates a one-replica Linux pool, claims a sandbox, captures a screenshot,
diff --git a/libs/typescript/computer/package.json b/libs/typescript/computer/package.json
index bd7be64ea5..12495e57e5 100644
--- a/libs/typescript/computer/package.json
+++ b/libs/typescript/computer/package.json
@@ -42,7 +42,7 @@
"pretypecheck": "pnpm --filter @trycua/core build && pnpm --filter @trycua/fleet build"
},
"dependencies": {
- "@trycua/core": "workspace:^",
+ "@trycua/core": "workspace:^0.1.4",
"pino": "^9.7.0",
"uuid": "^11.1.1",
"ws": "^8.21.0",
diff --git a/libs/typescript/pnpm-lock.yaml b/libs/typescript/pnpm-lock.yaml
index f5221a2a14..1d8152a808 100644
--- a/libs/typescript/pnpm-lock.yaml
+++ b/libs/typescript/pnpm-lock.yaml
@@ -60,7 +60,7 @@ importers:
computer:
dependencies:
"@trycua/core":
- specifier: workspace:^
+ specifier: workspace:^0.1.4
version: link:../core
"@trycua/fleet":
specifier: workspace:^