Skip to content

Commit 0ad92ec

Browse files
authored
build: minimal fixes to build on modern Node (#31)
* build: minimal fixes to build on modern Node * build: Node matrix update * build: go back to npm ci Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
1 parent 0c4d915 commit 0ad92ec

File tree

8 files changed

+33992
-17110
lines changed

8 files changed

+33992
-17110
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SKIP_PREFLIGHT_CHECK=true
2+
NODE_OPTIONS=--openssl-legacy-provider

.github/workflows/node.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
node-version: ["12.x", "14.x", 16.x, 18.x, 20.x, 22.x]
21+
node-version: [18.x, 20.x, 22.x, 24.x]
2222
# See supported Node release schedule at https://nodejs.org/en/about/releases/
2323

2424
steps:
@@ -30,9 +30,12 @@ jobs:
3030
node-version: ${{ matrix.node-version }}
3131
cache: 'npm'
3232

33-
- run: npm i
33+
- run: npm ci
3434

3535
- run: npm run build --if-present
36+
env:
37+
NODE_OPTIONS: --openssl-legacy-provider
38+
CI: false
3639

3740
# TODO: add tests
3841
# - run: npm test

0 commit comments

Comments
 (0)