From 9d6bd53ee58a21e4ec53ddb3843fb9c9303bc10a Mon Sep 17 00:00:00 2001 From: aparnajyothi-y <147696841+aparnajyothi-y@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:11:13 +0530 Subject: [PATCH] Update versions.yml --- .github/workflows/versions.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml index 51ff5fea..bdb99970 100644 --- a/.github/workflows/versions.yml +++ b/.github/workflows/versions.yml @@ -53,9 +53,9 @@ jobs: - if: runner.os != 'Windows' && runner.os != 'macOS' name: Verify node and npm run: | - . "$NVM_DIR/nvm.sh" - [[ $(nvm version-remote "${{ matrix.node-version }}") =~ ^v([^.]+) ]] - __tests__/verify-node.sh "${BASH_REMATCH[1]}" + node_version=$(node --version) + major_version=${node_version:1:2} + __tests__/verify-node.sh "$major_version" shell: bash v8-canary-syntax: