diff --git a/.github/actions/setup-node-if-needed/action.yml b/.github/actions/setup-node-if-needed/action.yml index 9eca38e4e..c326b56d4 100644 --- a/.github/actions/setup-node-if-needed/action.yml +++ b/.github/actions/setup-node-if-needed/action.yml @@ -15,7 +15,7 @@ runs: id: check-node shell: bash run: | - if command -v node >/dev/null 2>&1; then + if node --version 2>/dev/null | grep -q "v${{ inputs.node_version }}"; then echo "installed=true" >> "$GITHUB_OUTPUT" else echo "installed=false" >> "$GITHUB_OUTPUT" diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 77b766ea8..669e0299e 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -5,7 +5,7 @@ on: branches: - "master" env: - NODE_VERSION: 20 + NODE_VERSION: 22.18 jobs: # Multiple jobs depend on having EVM and SVM artifacts available, so we upload them first in separate jobs. upload-svm-artifacts: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b848f9e4c..dac6d5e8d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,7 +15,7 @@ on: permissions: contents: write env: - NODE_VERSION: "20.x" + NODE_VERSION: 22.18 EVM_ARTIFACTS_PATHS: | artifacts cache diff --git a/package.json b/package.json index a34960422..d69c14e61 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "url": "git+https://github.com/across-protocol/across-smart-contracts-v2.git" }, "engines": { - "node": ">=16.18.0" + "node": ">=22.18.0" }, "files": [ "/contracts/**/*.sol",