chore(ci): adopt upstream pnpm release-age + node pinning (cherry-pick 4ad2848)
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.
This commit is contained in:
@@ -15,6 +15,11 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version-file: .node-version
|
||||||
|
|
||||||
- name: Check version sync
|
- name: Check version sync
|
||||||
run: node scripts/check-version-sync.js
|
run: node scripts/check-version-sync.js
|
||||||
|
|
||||||
@@ -54,12 +59,10 @@ jobs:
|
|||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 24
|
node-version-file: .node-version
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
|
||||||
version: 10
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --filter dashboard
|
run: pnpm install --filter dashboard
|
||||||
@@ -209,7 +212,7 @@ jobs:
|
|||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 24
|
node-version-file: .node-version
|
||||||
|
|
||||||
- name: Setup Rust toolchain
|
- name: Setup Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|||||||
@@ -26,6 +26,11 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Compare package.json version to npm and check GitHub release
|
||||||
id: check
|
id: check
|
||||||
run: |
|
run: |
|
||||||
@@ -109,13 +114,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
|
||||||
version: 9
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '24'
|
node-version-file: .node-version
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
@@ -202,13 +205,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
|
||||||
version: 9
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '24'
|
node-version-file: .node-version
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
24
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
"version": "0.27.0-fork.8",
|
"version": "0.27.0-fork.8",
|
||||||
"description": "Browser automation CLI for AI agents — stealth fork with anti-detection",
|
"description": "Browser automation CLI for AI agents — stealth fork with anti-detection",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"packageManager": "pnpm@11.1.3",
|
||||||
"files": [
|
"files": [
|
||||||
"bin",
|
"bin",
|
||||||
"scripts",
|
"scripts",
|
||||||
|
|||||||
@@ -1,2 +1,9 @@
|
|||||||
packages:
|
packages:
|
||||||
- '.'
|
- '.'
|
||||||
|
minimumReleaseAge: 2880
|
||||||
|
allowBuilds:
|
||||||
|
'@mongodb-js/zstd': false
|
||||||
|
msw: false
|
||||||
|
node-liblzma: false
|
||||||
|
sharp: false
|
||||||
|
unrs-resolver: false
|
||||||
|
|||||||
Reference in New Issue
Block a user