Skip to content

Commit 4ad2848

Browse files
authored
chore: enforce pnpm minimum release age (#1377)
* chore: enforce pnpm minimum release age * fix: use package manager pnpm version in actions * chore: require node 24
1 parent 55f38f4 commit 4ad2848

7 files changed

Lines changed: 31 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jobs:
1515
- name: Checkout repository
1616
uses: actions/checkout@v4
1717

18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version-file: .node-version
22+
1823
- name: Check version sync
1924
run: node scripts/check-version-sync.js
2025

@@ -54,12 +59,10 @@ jobs:
5459
- name: Setup Node.js
5560
uses: actions/setup-node@v4
5661
with:
57-
node-version: 24
62+
node-version-file: .node-version
5863

5964
- name: Install pnpm
6065
uses: pnpm/action-setup@v4
61-
with:
62-
version: 10
6366

6467
- name: Install dependencies
6568
run: pnpm install --filter dashboard
@@ -209,7 +212,7 @@ jobs:
209212
- name: Setup Node.js
210213
uses: actions/setup-node@v4
211214
with:
212-
node-version: 24
215+
node-version-file: .node-version
213216

214217
- name: Setup Rust toolchain
215218
uses: dtolnay/rust-toolchain@stable

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
- name: Checkout repository
2727
uses: actions/checkout@v4
2828

29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version-file: .node-version
33+
2934
- name: Compare package.json version to npm and check GitHub release
3035
id: check
3136
run: |
@@ -109,13 +114,11 @@ jobs:
109114

110115
- name: Setup pnpm
111116
uses: pnpm/action-setup@v4
112-
with:
113-
version: 9
114117

115118
- name: Setup Node.js
116119
uses: actions/setup-node@v4
117120
with:
118-
node-version: '24'
121+
node-version-file: .node-version
119122
cache: pnpm
120123

121124
- name: Install npm dependencies
@@ -202,13 +205,11 @@ jobs:
202205

203206
- name: Setup pnpm
204207
uses: pnpm/action-setup@v4
205-
with:
206-
version: 9
207208

208209
- name: Setup Node.js
209210
uses: actions/setup-node@v4
210211
with:
211-
node-version: '24'
212+
node-version-file: .node-version
212213
cache: pnpm
213214
registry-url: 'https://registry.npmjs.org'
214215

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ agent-browser install # Download Chrome from Chrome for Testing (first time onl
4242

4343
### From Source
4444

45+
Requires Node.js 24+, pnpm 11+, and Rust.
46+
4547
```bash
4648
git clone https://github.com/vercel-labs/agent-browser
4749
cd agent-browser
@@ -73,6 +75,7 @@ Detects your installation method (npm, Homebrew, or Cargo) and runs the appropri
7375
### Requirements
7476

7577
- **Chrome** - Run `agent-browser install` to download Chrome from [Chrome for Testing](https://developer.chrome.com/blog/chrome-for-testing/) (Google's official automation channel). Existing Chrome, Brave, Playwright, and Puppeteer installations are detected automatically. No Playwright or Node.js required for the daemon.
78+
- **Node.js 24+ and pnpm 11+** - Only needed when building from source.
7679
- **Rust** - Only needed when building from source (see From Source above).
7780

7881
## Quick Start

docs/src/app/installation/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ cargo install agent-browser
4343
agent-browser install # Download Chrome (first time)
4444
```
4545

46-
Compiles from source (~2-3 min). Requires the Rust toolchain ([rustup.rs](https://rustup.rs)).
46+
Compiles from source (~2-3 min). Requires Node.js 24+, pnpm 11+, and the Rust toolchain ([rustup.rs](https://rustup.rs)).
4747

4848
## From source
4949

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"version": "0.27.0",
44
"description": "Browser automation CLI for AI agents",
55
"type": "module",
6+
"packageManager": "pnpm@11.1.3",
7+
"engines": {
8+
"node": ">=24.0.0",
9+
"pnpm": ">=11.0.0"
10+
},
611
"files": [
712
"bin",
813
"scripts",

pnpm-workspace.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@ packages:
22
- '.'
33
- 'packages/*'
44
- 'docs'
5+
minimumReleaseAge: 2880
6+
allowBuilds:
7+
'@mongodb-js/zstd': false
8+
msw: false
9+
node-liblzma: false
10+
sharp: false
11+
unrs-resolver: false

0 commit comments

Comments
 (0)