Skip to content

Commit ccddb01

Browse files
ci(root): run release gate on node 22
Align the pre-publish shrinkwrap installation check with the package engine floor so engine-strict validates dependencies instead of rejecting bitgo itself. TICKET: WCN-2596
1 parent c0fc9cd commit ccddb01

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/npmjs-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ jobs:
309309

310310
# WCN-2091: fail the release BEFORE bitgo publishes if the shrinkwrap it
311311
# would ship pins any transitive that violates our declared engines (Node
312-
# >=20). Runs after pass 1 because the shrinkwrap generator resolves
312+
# >=22). Runs after pass 1 because the shrinkwrap generator resolves
313313
# newly-published siblings from the registry. Pack + install here, not
314314
# --package-lock-only, so `engine-strict=true` actually validates every
315315
# frozen entry's engines. If this fails, siblings are already on npm but
@@ -325,13 +325,13 @@ jobs:
325325
echo "PREPUB_TARBALL=$tarball" >> "$GITHUB_ENV"
326326
echo "Packed: $tarball"
327327
328-
- name: Pre-publish shrinkwrap check — setup Node 20
328+
- name: Pre-publish shrinkwrap check — setup Node 22
329329
if: inputs.dry-run == false
330330
uses: actions/setup-node@v6
331331
with:
332-
node-version: '20.x'
332+
node-version: '22.x'
333333

334-
- name: Pre-publish shrinkwrap check — install tarball on Node 20 with engine-strict
334+
- name: Pre-publish shrinkwrap check — install tarball on Node 22 with engine-strict
335335
if: inputs.dry-run == false
336336
run: |
337337
workdir="$(mktemp -d)"
@@ -340,7 +340,7 @@ jobs:
340340
npm init -y >/dev/null
341341
echo "Verifying $PREPUB_TARBALL installs on $(node --version) with engine-strict=true"
342342
if ! npm install "$PREPUB_TARBALL" --no-audit --no-fund --ignore-scripts 2>install.log; then
343-
echo "::error::Pre-publish shrinkwrap check FAILED — bitgo tarball cannot be installed on Node 20 with engine-strict. Fix before publishing."
343+
echo "::error::Pre-publish shrinkwrap check FAILED — bitgo tarball cannot be installed on Node 22 with engine-strict. Fix before publishing."
344344
cat install.log
345345
exit 1
346346
fi

0 commit comments

Comments
 (0)