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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user