From 0fe4194162e29a776bd25c2bc109a78942015435 Mon Sep 17 00:00:00 2001 From: aparnajyothi-y <147696841+aparnajyothi-y@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:08:34 +0530 Subject: [PATCH] Update versions.yml --- .github/workflows/versions.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml index de7d00dc..51ff5fea 100644 --- a/.github/workflows/versions.yml +++ b/.github/workflows/versions.yml @@ -34,19 +34,22 @@ jobs: node-version: [lts/dubnium, lts/erbium, lts/fermium, lts/*, lts/-1] steps: - uses: actions/checkout@v4 + - name: Install NVM + if: runner.os == 'Linux' + run: | + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash + echo 'export NVM_DIR="$HOME/.config/nvm"' >> $GITHUB_ENV + echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $GITHUB_ENV + echo '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"' >> $GITHUB_ENV + - name: Source NVM + if: runner.os == 'Linux' + run: | + source $GITHUB_ENV - name: Setup Node uses: ./ 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: |