Skip to content

Commit fd3515c

Browse files
romtsnclaude
andcommitted
fix(ci): Install native resolver bindings for Jest 30 on release builds
Jest 30 uses @unrs/resolver which requires platform-specific native binaries. The release CI path uses --omit=optional which skips these bindings, causing Jest to fail with "Module not found" errors. Run napi-postinstall after install on release builds to install the correct native binary for the platform. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a0e91bf commit fd3515c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/test_node.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ jobs:
9696
if: ${{ inputs.triggered-by-release }}
9797
run: npm install --omit=optional --ignore-scripts
9898

99+
# --omit=optional skips native resolver bindings required by Jest 30.
100+
# napi-postinstall installs the correct platform-specific binary.
101+
- name: Install native bindings (for pushes to release branch)
102+
if: ${{ inputs.triggered-by-release }}
103+
run: npx napi-postinstall unrs-resolver
104+
99105
- name: Download build artifact
100106
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # 8.0.0
101107
with:

0 commit comments

Comments
 (0)