From 44b6218ef94f64592c295abfc3e12b21b5c978be Mon Sep 17 00:00:00 2001 From: leeguooooo Date: Mon, 1 Jun 2026 10:34:27 +0900 Subject: [PATCH] chore(ci): adopt upstream pnpm release-age + node pinning (cherry-pick 4ad2848) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cherry-picks upstream agent-browser #1377 (chore: enforce pnpm minimum release age), adapted for the fork: - add .node-version (24); workflows read node-version-file instead of inline - pin packageManager pnpm@11.1.3; drop hard-coded pnpm/action-setup versions - pnpm-workspace.yaml: add minimumReleaseAge (48h supply-chain cooldown) + allowBuilds allowlist, keeping our trimmed packages list (no packages/*, docs) Deliberately dropped from upstream: - engines.node >=24 / engines.pnpm >=11 — would impose a Node 24 floor on end-users of the published agent-browser-stealth CLI (a compiled binary that doesn't need it). packageManager + .node-version cover dev/CI pinning. - docs/ and README hunks — those paths are removed/rewritten in this fork. --- .github/workflows/ci.yml | 11 +++++++---- .github/workflows/release.yml | 13 +++++++------ .node-version | 1 + package.json | 1 + pnpm-workspace.yaml | 7 +++++++ 5 files changed, 23 insertions(+), 10 deletions(-) create mode 100644 .node-version diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 095850d..1198d51 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: .node-version + - name: Check version sync run: node scripts/check-version-sync.js @@ -54,12 +59,10 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 24 + node-version-file: .node-version - name: Install pnpm uses: pnpm/action-setup@v4 - with: - version: 10 - name: Install dependencies run: pnpm install --filter dashboard @@ -209,7 +212,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 24 + node-version-file: .node-version - name: Setup Rust toolchain uses: dtolnay/rust-toolchain@stable diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b41bef1..f1d397f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: .node-version + - name: Compare package.json version to npm and check GitHub release id: check run: | @@ -109,13 +114,11 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v4 - with: - version: 9 - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '24' + node-version-file: .node-version cache: pnpm - name: Install npm dependencies @@ -202,13 +205,11 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v4 - with: - version: 9 - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '24' + node-version-file: .node-version cache: pnpm registry-url: 'https://registry.npmjs.org' diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..a45fd52 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +24 diff --git a/package.json b/package.json index 0dbc843..51c04d9 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.27.0-fork.8", "description": "Browser automation CLI for AI agents — stealth fork with anti-detection", "type": "module", + "packageManager": "pnpm@11.1.3", "files": [ "bin", "scripts", diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 4de91a3..f86a3e2 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,2 +1,9 @@ packages: - '.' +minimumReleaseAge: 2880 +allowBuilds: + '@mongodb-js/zstd': false + msw: false + node-liblzma: false + sharp: false + unrs-resolver: false