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.

Create (untested) npm deploy workflows

Morgan Dean4625b65babe6
diff --git a/.github/workflows/publish-computer-ts.yml b/.github/workflows/publish-computer-ts.yml
new file mode 100644
index 0000000000..6d9f72d9b5
--- /dev/null
+++ b/.github/workflows/publish-computer-ts.yml
@@ -0,0 +1,32 @@
+name: Publish @cua/computer to npm
+
+on:
+ push:
+ tags:
+ - 'computer-v*'
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Use Node.js LTS
+ uses: actions/setup-node@v4
+ with:
+ node-version: lts/*
+ registry-url: 'https://registry.npmjs.org'
+
+ - name: Install dependencies
+ working-directory: ./libs/typescript/computer
+ run: npm ci
+
+ - name: Build package
+ working-directory: ./libs/typescript/computer
+ run: npm run build --if-present
+
+ - name: Publish to npm
+ working-directory: ./libs/typescript/computer
+ run: npm publish --access public
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
diff --git a/.github/workflows/publish-core-ts.yml b/.github/workflows/publish-core-ts.yml
new file mode 100644
index 0000000000..61e2628362
--- /dev/null
+++ b/.github/workflows/publish-core-ts.yml
@@ -0,0 +1,32 @@
+name: Publish @cua/core to npm
+
+on:
+ push:
+ tags:
+ - 'core-v*'
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Use Node.js LTS
+ uses: actions/setup-node@v4
+ with:
+ node-version: lts/*
+ registry-url: 'https://registry.npmjs.org'
+
+ - name: Install dependencies
+ working-directory: ./libs/typescript/core
+ run: npm ci
+
+ - name: Build package
+ working-directory: ./libs/typescript/core
+ run: npm run build --if-present
+
+ - name: Publish to npm
+ working-directory: ./libs/typescript/core
+ run: npm publish --access public
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
diff --git a/libs/typescript/computer/.github/_workflows/release.yml b/libs/typescript/computer/.github/_workflows/release.yml
deleted file mode 100644
index e5b7a4c3b1..0000000000
--- a/libs/typescript/computer/.github/_workflows/release.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-name: Release
-
-permissions:
- contents: write
-
-on:
- push:
- tags:
- - 'v*'
-
-jobs:
- release:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- with:
- fetch-depth: 0
-
- - name: Set node
- uses: actions/setup-node@v4
- with:
- node-version: lts/*
-
- - run: npx changelogithub
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/libs/typescript/computer/.github/_workflows/unit-test.yml b/libs/typescript/computer/.github/_workflows/unit-test.yml
deleted file mode 100644
index dc3418c59e..0000000000
--- a/libs/typescript/computer/.github/_workflows/unit-test.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-name: Unit Test
-
-on:
- push:
- branches: [main]
- pull_request:
- branches: [main]
-
-jobs:
- test:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v4
-
- - name: Install pnpm
- uses: pnpm/[email protected]
-
- - name: Set node LTS
- uses: actions/setup-node@v4
- with:
- node-version: lts/*
- cache: pnpm
-
- - name: Install
- run: pnpm install
-
- - name: Build
- run: pnpm run build
-
- - name: Lint
- run: pnpm run lint
-
- - name: Typecheck
- run: pnpm run typecheck
-
- - name: Test
- run: pnpm run test
diff --git a/libs/typescript/core/.github/_workflows/release.yml b/libs/typescript/core/.github/_workflows/release.yml
deleted file mode 100644
index e5b7a4c3b1..0000000000
--- a/libs/typescript/core/.github/_workflows/release.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-name: Release
-
-permissions:
- contents: write
-
-on:
- push:
- tags:
- - 'v*'
-
-jobs:
- release:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- with:
- fetch-depth: 0
-
- - name: Set node
- uses: actions/setup-node@v4
- with:
- node-version: lts/*
-
- - run: npx changelogithub
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/libs/typescript/core/.github/_workflows/unit-test.yml b/libs/typescript/core/.github/_workflows/unit-test.yml
deleted file mode 100644
index dc3418c59e..0000000000
--- a/libs/typescript/core/.github/_workflows/unit-test.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-name: Unit Test
-
-on:
- push:
- branches: [main]
- pull_request:
- branches: [main]
-
-jobs:
- test:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v4
-
- - name: Install pnpm
- uses: pnpm/[email protected]
-
- - name: Set node LTS
- uses: actions/setup-node@v4
- with:
- node-version: lts/*
- cache: pnpm
-
- - name: Install
- run: pnpm install
-
- - name: Build
- run: pnpm run build
-
- - name: Lint
- run: pnpm run lint
-
- - name: Typecheck
- run: pnpm run typecheck
-
- - name: Test
- run: pnpm run test
diff --git a/libs/typescript/core/.vscode/settings.json b/libs/typescript/core/.vscode/settings.json
deleted file mode 100644
index ad92582bd0..0000000000
--- a/libs/typescript/core/.vscode/settings.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "editor.formatOnSave": true
-}