From 1db59917fb2875421a46ff0b02f3edb2e7d55158 Mon Sep 17 00:00:00 2001 From: Otavio Jacobi Date: Mon, 8 Apr 2024 08:50:49 -0300 Subject: [PATCH] Fix install for experimental NAPI releases on node 20.12 See: https://github.com/nodejs/node/issues/52229#issuecomment-2040131493 Change-type: patch --- .github/actions/test/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index e2a21404b..865495e57 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -45,9 +45,9 @@ runs: [[ '${{ inputs.VERBOSE }}' =~ on|On|Yes|yes|true|True ]] && set -x if [[ -e package-lock.json ]] || [[ -e npm-shrinkwrap.json ]]; then - npm ci + CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm ci else - npm i + CXXFLAGS='-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT' npm i fi npm run build