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: