diff --git a/.github/workflows/alpha-macos-aarch64.yml b/.github/workflows/alpha-macos-aarch64.yml index bc6a2ad7..2f6997a3 100644 --- a/.github/workflows/alpha-macos-aarch64.yml +++ b/.github/workflows/alpha-macos-aarch64.yml @@ -24,14 +24,14 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: ${{ github.sha }} - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: .nvmrc - name: Setup pnpm uses: pnpm/action-setup@v4 @@ -49,7 +49,7 @@ jobs: run: echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT" - name: Cache pnpm store - uses: actions/cache@v4 + uses: actions/cache@v5 continue-on-error: true with: path: ${{ steps.pnpm-store.outputs.path }} @@ -58,7 +58,7 @@ jobs: macos-pnpm- - name: Cache cargo - uses: actions/cache@v4 + uses: actions/cache@v5 continue-on-error: true with: path: | @@ -126,7 +126,7 @@ jobs: run: pnpm --filter @openwork/desktop exec tauri build --config src-tauri/tauri.conf.alpha.json --target aarch64-apple-darwin --bundles dmg,app - name: Upload alpha artifact bundle - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: openwork-alpha-macos-aarch64-${{ github.sha }} path: | diff --git a/.github/workflows/aur-validate.yml b/.github/workflows/aur-validate.yml index 870e1757..d61c8e11 100644 --- a/.github/workflows/aur-validate.yml +++ b/.github/workflows/aur-validate.yml @@ -181,7 +181,7 @@ jobs: xorg-server-xvfb - name: Checkout target ref - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: ${{ inputs.ref || github.ref_name }} fetch-depth: 0 @@ -231,7 +231,7 @@ jobs: - name: Download local workflow artifact if: env.ARTIFACT_SOURCE == 'local-build-artifact' && env.INPUT_ASSET_URL_X86_64 == '' - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: ${{ inputs.artifact_name || 'openwork-desktop-linux-amd64-deb' }} run-id: ${{ inputs.artifact_run_id }} diff --git a/.github/workflows/build-desktop.yml b/.github/workflows/build-desktop.yml index 61b5412f..47cf20d8 100644 --- a/.github/workflows/build-desktop.yml +++ b/.github/workflows/build-desktop.yml @@ -23,12 +23,12 @@ jobs: EFFECTIVE_RUNS_ON: ${{ vars.OPENWORK_LINUX_X64_RUNNER_LABEL != '' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL || 'ubuntu-22.04' }} - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: .nvmrc - name: Setup pnpm uses: pnpm/action-setup@v4 diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 489ec0cd..e7d4ae15 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -22,12 +22,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: .nvmrc - name: Setup pnpm uses: pnpm/action-setup@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2ec37fc..f241cbd2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,12 +18,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: .nvmrc - name: Setup pnpm uses: pnpm/action-setup@v4 @@ -37,17 +37,17 @@ jobs: run: pnpm --filter @openwork-ee/den-web build build-den: - name: Build Den service + name: Build Den services runs-on: blacksmith-4vcpu-ubuntu-2404 steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: .nvmrc - name: Setup pnpm uses: pnpm/action-setup@v4 @@ -57,8 +57,11 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Build den service - run: pnpm --filter @openwork-ee/den-controller build + - name: Build den-api + run: pnpm --filter @openwork-ee/den-api build + + - name: Build den-worker-proxy + run: pnpm --filter @openwork-ee/den-worker-proxy build build-orchestrator-binary: name: Build openwork orchestrator binary @@ -66,12 +69,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: .nvmrc - name: Setup pnpm uses: pnpm/action-setup@v4 diff --git a/.github/workflows/download-stats.yml b/.github/workflows/download-stats.yml index 24ecaeaf..a965d04b 100644 --- a/.github/workflows/download-stats.yml +++ b/.github/workflows/download-stats.yml @@ -16,12 +16,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: .nvmrc - name: Run stats script env: diff --git a/.github/workflows/opencode-agents.yml b/.github/workflows/opencode-agents.yml index 8a1a38a1..b8adb12d 100644 --- a/.github/workflows/opencode-agents.yml +++ b/.github/workflows/opencode-agents.yml @@ -15,10 +15,15 @@ jobs: issues: write steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 1 + - name: Setup Node + uses: actions/setup-node@v6 + with: + node-version-file: .nvmrc + - name: Install opencode run: | version="$(node -e "const fs=require('fs'); const parsed=JSON.parse(fs.readFileSync('constants.json','utf8')); process.stdout.write(String(parsed.opencodeVersion||'').trim().replace(/^v/,''));")" @@ -45,10 +50,15 @@ jobs: pull-requests: write steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 1 + - name: Setup Node + uses: actions/setup-node@v6 + with: + node-version-file: .nvmrc + - name: Install opencode run: | version="$(node -e "const fs=require('fs'); const parsed=JSON.parse(fs.readFileSync('constants.json','utf8')); process.stdout.write(String(parsed.opencodeVersion||'').trim().replace(/^v/,''));")" diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 9722d7e2..36de01c4 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -122,7 +122,7 @@ jobs: EFFECTIVE_RUNS_ON: ${{ matrix.target == 'x86_64-unknown-linux-gnu' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL != '' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL || matrix.platform }} - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: ${{ github.sha }} @@ -132,9 +132,9 @@ jobs: run: git config --global core.longpaths true - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: .nvmrc - name: Setup pnpm uses: pnpm/action-setup@v4 diff --git a/.github/workflows/release-daytona-snapshot.yml b/.github/workflows/release-daytona-snapshot.yml index 3fd66492..4d8baa3a 100644 --- a/.github/workflows/release-daytona-snapshot.yml +++ b/.github/workflows/release-daytona-snapshot.yml @@ -93,7 +93,7 @@ jobs: echo "snapshot_region=$snapshot_region" >> "$GITHUB_OUTPUT" - name: Checkout release source - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 ref: ${{ steps.resolve.outputs.release_tag }} diff --git a/.github/workflows/release-macos-aarch64.yml b/.github/workflows/release-macos-aarch64.yml index c25e4a73..81f57591 100644 --- a/.github/workflows/release-macos-aarch64.yml +++ b/.github/workflows/release-macos-aarch64.yml @@ -222,15 +222,15 @@ jobs: RELEASE_TAG: ${{ needs.resolve-release.outputs.release_tag }} steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: ${{ env.RELEASE_TAG }} fetch-depth: 0 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: .nvmrc - name: Verify tag matches app versions run: node scripts/release/verify-tag.mjs --tag "$RELEASE_TAG" @@ -291,7 +291,7 @@ jobs: EFFECTIVE_RUNS_ON: ${{ matrix.target == 'x86_64-unknown-linux-gnu' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL != '' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL || matrix.platform }} - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: ${{ env.RELEASE_TAG }} fetch-depth: 0 @@ -302,9 +302,9 @@ jobs: run: git config --global core.longpaths true - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: .nvmrc - name: Setup pnpm uses: pnpm/action-setup@v4 @@ -322,7 +322,7 @@ jobs: run: echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT" - name: Cache pnpm store - uses: actions/cache@v4 + uses: actions/cache@v5 continue-on-error: true with: path: ${{ steps.pnpm-store.outputs.path }} @@ -331,7 +331,7 @@ jobs: ${{ runner.os }}-pnpm- - name: Cache cargo - uses: actions/cache@v4 + uses: actions/cache@v5 continue-on-error: true with: path: | @@ -581,7 +581,7 @@ jobs: RELEASE_TAG: ${{ needs.resolve-release.outputs.release_tag }} steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: ${{ env.RELEASE_TAG }} fetch-depth: 0 @@ -614,15 +614,15 @@ jobs: RELEASE_TAG: ${{ needs.resolve-release.outputs.release_tag }} steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: ${{ env.RELEASE_TAG }} fetch-depth: 0 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: .nvmrc - name: Setup pnpm uses: pnpm/action-setup@v4 @@ -640,7 +640,7 @@ jobs: run: echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT" - name: Cache pnpm store - uses: actions/cache@v4 + uses: actions/cache@v5 continue-on-error: true with: path: ${{ steps.pnpm-store.outputs.path }} @@ -725,15 +725,15 @@ jobs: RELEASE_TAG: ${{ needs.resolve-release.outputs.release_tag }} steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: ${{ env.RELEASE_TAG }} fetch-depth: 0 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: .nvmrc - name: Setup pnpm uses: pnpm/action-setup@v4 @@ -751,7 +751,7 @@ jobs: run: echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT" - name: Cache pnpm store - uses: actions/cache@v4 + uses: actions/cache@v5 continue-on-error: true with: path: ${{ steps.pnpm-store.outputs.path }} @@ -882,7 +882,7 @@ jobs: RELEASE_TAG: ${{ needs.resolve-release.outputs.release_tag }} steps: - name: Checkout dev - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: dev fetch-depth: 0 diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..a45fd52c --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +24