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: |