diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b4fa99f..76ee0d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -260,6 +260,26 @@ jobs: fi echo "Found $BINARY_COUNT binaries" + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: pnpm + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Build dashboard + run: pnpm --filter dashboard build + + - name: Create dashboard.zip + run: cd packages/dashboard/out && zip -r ../../../dashboard.zip . + - name: Create GitHub Release run: | VERSION=$(node -p "require('./package.json').version") @@ -267,14 +287,14 @@ jobs: # Check if release already exists if gh release view "$TAG" &>/dev/null; then - echo "Release $TAG already exists, uploading binaries..." - gh release upload "$TAG" bin/agent-browser-* --clobber + echo "Release $TAG already exists, uploading assets..." + gh release upload "$TAG" bin/agent-browser-* dashboard.zip --clobber else echo "Creating release $TAG..." gh release create "$TAG" \ --title "$TAG" \ --generate-notes \ - bin/agent-browser-* + bin/agent-browser-* dashboard.zip fi env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 5a923c0..3cc57d2 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,7 @@ docs/package-lock.json # pnpm .pnpm-store/ + +# next +.next/ +out/ diff --git a/AGENTS.md b/AGENTS.md index 46e7d2d..94c2aea 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -26,6 +26,11 @@ This applies to changes that either human users or AI agents would need to know In the `docs/src/app/` MDX files, always use HTML `