ci: upgrade to Node.js 20 for native globalThis.crypto support

This commit is contained in:
2025-12-16 14:27:11 -05:00
parent 60cd6bfaec
commit 92f5e1c33a
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
cache: 'npm'
- name: Install dependencies

View File

@@ -15,7 +15,7 @@ function getCrypto(): Crypto {
return window.crypto;
}
// Node.js/Electron environment - globalThis.crypto available in modern runtimes
// Node.js/Electron environment - globalThis.crypto available in Node 20+
if (typeof globalThis !== 'undefined' && globalThis.crypto) {
return globalThis.crypto;
}