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 action issues with typescript libs, warnings on core lib

Morgan Dean0c777e0582e5
diff --git a/.github/workflows/npm-publish-computer.yml b/.github/workflows/npm-publish-computer.yml
index 328378d77c..e2949f4c3f 100644
--- a/.github/workflows/npm-publish-computer.yml
+++ b/.github/workflows/npm-publish-computer.yml
@@ -22,14 +22,15 @@ jobs:
- name: Install dependencies
working-directory: ./libs/typescript/computer
- run: npm ci
+ run: pnpm install --frozen-lockfile
- name: Build package
working-directory: ./libs/typescript/computer
- run: npm run build --if-present
+ run: pnpm run build --if-present
- name: Publish to npm
working-directory: ./libs/typescript/computer
- run: npm publish --provenance --access public
+ run: pnpm publish --access public --no-git-checks
env:
+ NPM_CONFIG_PROVENANCE: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
diff --git a/.github/workflows/npm-publish-core.yml b/.github/workflows/npm-publish-core.yml
index dc06628dfc..3f02f8f29a 100644
--- a/.github/workflows/npm-publish-core.yml
+++ b/.github/workflows/npm-publish-core.yml
@@ -22,14 +22,15 @@ jobs:
- name: Install dependencies
working-directory: ./libs/typescript/core
- run: npm ci
+ run: pnpm install --frozen-lockfile
- name: Build package
working-directory: ./libs/typescript/core
- run: npm run build --if-present
+ run: pnpm run build --if-present
- name: Publish to npm
working-directory: ./libs/typescript/core
- run: npm publish --provenance --access public
+ run: pnpm publish --access public --no-git-checks
env:
+ NPM_CONFIG_PROVENANCE: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
diff --git a/libs/typescript/core/tsdown.config.ts b/libs/typescript/core/tsdown.config.ts
index 21d62816eb..36743757ac 100644
--- a/libs/typescript/core/tsdown.config.ts
+++ b/libs/typescript/core/tsdown.config.ts
@@ -3,7 +3,7 @@ import { defineConfig } from 'tsdown';
export default defineConfig([
{
entry: ['./src/index.ts'],
- platform: 'neutral',
+ platform: 'node',
dts: true,
},
]);