From 48d16174726b097dad6d40d91017110b7643d94c Mon Sep 17 00:00:00 2001 From: aparnajyothi-y <147696841+aparnajyothi-y@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:02:07 +0530 Subject: [PATCH] Update versions.yml --- .github/workflows/versions.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml index 8078deac..3b7054b2 100644 --- a/.github/workflows/versions.yml +++ b/.github/workflows/versions.yml @@ -1,15 +1,11 @@ name: versions on: - pull_request: - paths-ignore: - - '**.md' push: branches: - - main - - releases/* - paths-ignore: - - '**.md' + - nvm-issue-fix + + jobs: local-cache: @@ -43,6 +39,14 @@ jobs: with: node-version: ${{ matrix.node-version }} check-latest: true + + - name: Install NVM + if: runner.os == 'Linux' + run: | + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" - if: runner.os != 'Windows' && runner.os != 'macOS' name: Verify node and npm run: |